﻿/* Imports */

@font-face {
    font-family: 'Vazir';
    src: url('WebFonts/Vazir/Vazirmatn-Medium.woff2');
}

@font-face {
    font-family: 'Yekan';
    src: url('WebFonts/B_Yekan/Yekan.ttf');
}

@font-face {
    font-family: 'Poppins';
    src: url('WebFonts/Poppins/Poppins.ttf');
}

/* Base Styles */

body {
    font-family: 'Vazir', 'Poppins', sans-serif;
    box-sizing: border-box;
    overflow-x: hidden;
    
}

html,
body {
    overflow-x: hidden;
}

body::selection {
    background: #7a2ab8;
    color: white;
}

.blue-burst-bg {
    position: fixed;
    inset: 0;
    z-index: -10;
    background: radial-gradient(125% 125% at 50% 10%, #000 50%, #200270 100%);
    will-change: transform;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

body::-webkit-scrollbar {
    display: none;
}

#neon-scrollbar-track {
    position: fixed;
    right: .1rem;
    top: 0;
    width: 6px;
    height: 100vh;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
}

#neon-scrollbar-thumb {
    position: absolute;
    right: 0;
    width: 100%;
    border-radius: 6px;
    background: linear-gradient(180deg, #4d7cff, #b24dff);
    box-shadow: 0 0 12px rgba(178, 77, 255, 0.8);
    opacity: 0.8;
    transition: opacity 0.2s;
    cursor: grab;
}

#neon-scrollbar-track:hover #neon-scrollbar-thumb {
    opacity: 1;
}

#neon-scrollbar-thumb:active {
    cursor: grabbing;
    opacity: 1;
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.35);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(77, 124, 255, 0.2);
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .back-to-top.visible {
        opacity: 1;
        visibility: visible;
    }

    .back-to-top:hover {
        transform: scale(1.1);
        box-shadow: 0 0 30px rgba(178, 77, 255, 0.6);
    }

.wave-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.arrow-up {
    position: relative;
    z-index: 2;
    width: 12px;
    height: 12px;
    margin-top: .3rem;
    border-left: 3px solid #fff;
    border-top: 3px solid #fff;
    transform: rotate(45deg);
    opacity: 0.9;
    transition: opacity 0.3s;
}

.back-to-top:hover .arrow-up {
    opacity: 1;
}

/* NavBar Section Styles */

.logo-glow {
    text-shadow: 0 0 10px rgba(178, 77, 255, 0.4);
    animation: logoPulse 3s ease-in-out infinite alternate;
    font-size: 1.7rem;
    height: 2.15rem;
}

@keyframes logoPulse {
    from {
        text-shadow: 0 0 8px rgba(77, 124, 255, 0.4);
    }

    to {
        text-shadow: 0 0 18px rgba(178, 77, 255, 0.7);
    }
}

.nav-links {
    margin-top: 10px !important;
}

.nav-logo-text {
    max-width: 50px;
    height: 30px;
}

    .nav-logo-text img {
        width: 100%;
        scale: 2.4;
        object-fit: cover;
    }

.logo-text:hover {
    filter: drop-shadow(0 0 14px rgba(178, 77, 255, 0.8));
}

#navbar > div:first-of-type::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(77, 124, 255, 0.3), rgba(178, 77, 255, 0.15), rgba(255, 77, 166, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    pointer-events: none;
}

#navbar > div:first-of-type {
    position: relative;
    background: rgba(10, 10, 15, 0.25);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.03), 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 80px;
    top: 1rem;
}

.mobile-contact-btn {
    background: rgba(10, 10, 15, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 10px rgba(178, 77, 255, 0.15);
}

    .mobile-contact-btn:active {
        transform: scale(0.95);
    }

#navbar {
    background: transparent;
}

.nav-link {
    position: relative;
    text-decoration: none;
    padding-bottom: 6px;
    display: inline-block;
}

    .nav-link::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 1px;
        border-radius: 2px;
        background: currentColor;
        box-shadow: 0 0 0 transparent;
        transform: scaleX(0);
        transform-origin: right;
        transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.15, 1.0), box-shadow 0s 0.5s;
    }

    .nav-link:hover::after {
        transform: scaleX(1);
        box-shadow: 0 0 10px currentColor;
        transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.15, 1.0), box-shadow 0s 0s;
    }

@keyframes neon-pulse {
    0% {
        box-shadow: 0 0 6px currentColor;
    }

    50% {
        box-shadow: 0 0 18px currentColor, 0 0 30px currentColor;
    }

    100% {
        box-shadow: 0 0 8px currentColor;
    }
}

.hover\:text-neon-blue:hover {
    color: #4d7cff;
}

.hover\:text-neon-purple:hover {
    color: #b24dff;
}

.hover\:text-neon-pink:hover {
    color: #ff4da6;
}

.text-neon-blue {
    color: #4d7cff;
}

.text-neon-purple {
    color: #b24dff;
}

.text-neon-pink {
    color: #ff4da6;
}

.bg-neon-blue {
    background-color: #4d7cff;
}

.bg-neon-purple {
    background-color: #b24dff;
}

.border-neon-blue {
    border-color: #4d7cff;
}

.shadow-neon-blue {
    box-shadow: 0 0 15px rgba(77, 124, 255, 0.6);
}

.shadow-neon-purple {
    box-shadow: 0 0 25px rgba(178, 77, 255, 0.6);
}

.logo {
    scale: .65 !important;
}

/* Hero Section Styles */

.logo-text {
    background: linear-gradient(135deg, #4d7cff 0%, #b24dff 50%, #ff4da6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 6px rgba(178, 77, 255, 0.4));
    transition: filter 0.4s;
}

.hero-img-wrapper {
    height: 350px;
}

.hero-img {
    height: 115%;
    top: .2rem;
    left: -11rem;
    position: absolute;
}

.hero-decoration-img {
    mix-blend-mode: screen;
    opacity: 0.7;
}

#hero {
    margin-top: 10rem;
}

.roban-1 {
    scale: 1.7;
    top: -5rem;
    right: 5.5rem;
}

.roban-2 {
    scale: 2;
    top: 10rem;
    left: 15rem;
}

.glass-card {
    background: rgb(10 10 15 / 14%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    max-width: 70rem;
    width: 100%;
    overflow: hidden;
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.btn-glass,
.btn-glass-purple {
    position: relative;
    padding: 0.8rem 2.2rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    letter-spacing: 0.3px;
}

    .btn-glass::after {
        content: "";
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 25px;
        background: radial-gradient(ellipse at center, rgb(77 109 255 / 65%) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.4s ease, transform 0.4s ease;
        pointer-events: none;
        border-radius: 50%;
        filter: blur(5px);
    }

    .btn-glass-purple::after {
        content: "";
        position: absolute;
        bottom: -15px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        height: 25px;
        background: radial-gradient(ellipse at center, rgba(199, 77, 255, 0.65) 0%, transparent 70%);
        opacity: 0;
        transition: opacity 0.4s ease, transform 0.4s ease;
        pointer-events: none;
        border-radius: 50%;
        filter: blur(5px);
    }

    .btn-glass:hover {
        border-color: #4d7cff;
        box-shadow: 0 0 15px rgba(77, 124, 255, 0.5);
        background: rgba(77, 124, 255, 0.1);
        color: #ffffff;
        transform: translateY(-1px);
    }

    .btn-glass-purple:hover {
        border-color: #e550ff8b;
        box-shadow: 0 0 15px #e550ff8b;
        background: rgba(77, 124, 255, 0.1);
        color: #ffffff;
        transform: translateY(-1px);
    }

    .btn-glass:hover::after {
        opacity: 1;
        transform: translateX(-50%) translateY(-3px);
    }

    .btn-glass-purple:hover::after {
        opacity: 1;
        transform: translateX(-50%) translateY(-3px);
    }

/* Services Sections Styles */

.fade-target {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 0.8s ease-out;
}

    .fade-target.animate-fade-in {
        opacity: 1;
        transform: translateY(0);
    }

.services-title {
    position: relative;
    display: inline-block;
    padding-bottom: 16px;
    text-shadow: 0 0 15px rgba(77, 124, 255, 0.3);
}

    .services-title::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 3px;
        background: linear-gradient(90deg, #4d7cff, #b24dff);
        border-radius: 3px;
        box-shadow: 0 0 12px rgba(178, 77, 255, 0.6);
        animation: linePulse 3s ease-in-out infinite alternate;
    }

@keyframes linePulse {
    from {
        box-shadow: 0 0 8px rgba(178, 77, 255, 0.4);
    }

    to {
        box-shadow: 0 0 18px rgba(178, 77, 255, 0.8);
    }
}

.service-card,
.service-card-2,
.service-card-3 {
    position: relative;
    background: rgb(10 10 15 / 10%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2rem;
    padding: 2.5rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 420px;
    max-width: 21.5rem;
    overflow: hidden;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}

.service-icon-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 2rem auto 1.8rem;
}

.icon-main-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 110px;
    border-radius: 12px;
/*    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);*/
/*    border: 1px solid rgba(255, 255, 255, 0.15);*/
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.icon-float {
    position: absolute;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.03);
    z-index: 1;
}

.icon-float-top-right {
    width: 55px;
    height: 55px;
    top: 0;
    right: 5px;
    animation: floatIconTR 6s ease-in-out infinite alternate;
}

.icon-float-bottom-left {
    width: 45px;
    height: 45px;
    bottom: 0;
    left: 5px;
    animation: floatIconBL 4s ease-in-out infinite alternate;
}

@keyframes floatIconTR {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(8px, -6px) scale(1.05);
    }
}

@keyframes floatIconBL {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-6px, 6px) scale(0.95);
    }
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-top: .8rem;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.service-desc {
    color: #9ca3af;
    line-height: 1.8;
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.service-card:hover {
    border-color: #4d7cff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6), 0 0 20px #4d7cff;
    transform: translateY(-6px);
}

.service-card-2:hover {
    border-color: #b300ff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6), 0 0 20px #9e00ed;
    transform: translateY(-6px);
}

.service-card-3:hover {
    border-color: #ff00f2;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6), 0 0 20px #f500ed;
    transform: translateY(-6px);
}

.card-hover-glow {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 60px;
    background: radial-gradient(rgb(1 45 167) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    filter: blur(12px);
}

.card-hover-glow-2 {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 60px;
    background: radial-gradient(rgb(175, 0, 214) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    filter: blur(12px);
}

.card-hover-glow-3 {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 60px;
    background: radial-gradient(rgb(235, 2, 208) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    filter: blur(12px);
}

.service-card:hover .card-hover-glow {
    opacity: 0.6;
}

.service-card-2:hover .card-hover-glow-2 {
    opacity: 0.6;
}

.service-card-3:hover .card-hover-glow-3 {
    opacity: 0.6;
}

.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

    .stagger-item.visible {
        opacity: 1;
        transform: translateY(0);
    }

.roban-3 {
    width: 60%;
    top: 55rem;
    right: -3rem;
}

.service-decor-img {
    position: absolute;
    top: -8%;
    right: -8%;
    width: 75rem;
    opacity: 0.7;
    pointer-events: none;
    z-index: -10;
}

.service-decor-img-2 {
    position: absolute;
    top: -9% !important;
    left: -13% !important;
    width: 75rem;
    opacity: 0.9;
    pointer-events: none;
    z-index: -10;
}

.skill-bar-track {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.3);
    position: relative;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 20px;
    width: 0%;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
}

.liquid-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 200% 100%;
    animation: liquidShimmer 2.5s linear infinite;
}

.work-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.4s ease;
}

    .work-card:hover {
        border-color: rgba(178, 77, 255, 0.5);
        box-shadow: 0 0 25px rgba(178, 77, 255, 0.3);
    }

    .work-card img {
        width: 100%;
        height: 16rem; 
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .work-card:hover img {
        transform: scale(1.05);
    }

    .work-card .overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, #0a0a0f, rgba(10, 10, 15, 0.7), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 1.5rem;
    }

    .work-card:hover .overlay {
        opacity: 1;
    }


    .work-card .overlay h2 {
        color: #ffffff;
        font-size: 1.25rem;
        font-weight: 700;
        margin-bottom: 0.25rem;
        transform: translateY(1rem);
        transition: transform 0.3s ease;
    }

    .work-card:hover .overlay h2 {
        transform: translateY(0);
    }

  
    .work-card .overlay p {
        color: #d1d5db; 
        font-size: 0.875rem; 
        margin-top: 0.25rem;
        transform: translateY(1rem);
        transition: transform 0.3s ease 75ms;
    }

    .work-card:hover .overlay p {
        transform: translateY(0);
    }

    .work-card .overlay .view-btn {
        align-self: flex-start;
        margin-top: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 0.875rem;
        color: #b24dff;
        border: 1px solid rgba(178, 77, 255, 0.5);
        border-radius: 9999px;
        padding: 0.375rem 1rem;
        text-decoration: none;
        opacity: 0;
        transform: translateY(1rem);
        transition: all 0.3s ease 100ms;
    }

    .work-card:hover .overlay .view-btn {
        opacity: 1;
        transform: translateY(0);
    }

    .work-card .overlay .view-btn:hover {
        background: rgba(178, 77, 255, 0.2);
        box-shadow: 0 0 15px rgba(178, 77, 255, 0.5);
    }

    .work-card .separator {
        width: 1px;
        height: 2.5rem;
        background: linear-gradient(to bottom, rgba(178, 77, 255, 0.6), transparent);
        margin: 0 1rem;
    }

    .liquid-fill .wave-surface {
        position: absolute;
        top: -2px;
        left: 0;
        width: 200%;
        height: 14px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C200,120 400,0 600,60 C800,120 1000,0 1200,60 L1200,120 L0,120 Z' fill='rgb(255, 77, 166)'/%3E%3C/svg%3E") repeat-x;
        background-size: 40% 100%;
        animation: waveFlow 3s linear infinite;
        opacity: 0.9;
        mix-blend-mode: overlay;
    }

    .liquid-fill .wave-surface-blue {
        position: absolute;
        top: -2px;
        left: 0;
        width: 200%;
        height: 14px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C200,120 400,0 600,60 C800,120 1000,0 1200,60 L1200,120 L0,120 Z' fill='rgb(37, 52, 255)'/%3E%3C/svg%3E") repeat-x;
        background-size: 40% 100%;
        animation: waveFlow 3s linear infinite;
        opacity: 0.9;
        mix-blend-mode: overlay;
    }

@keyframes liquidShimmer {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

@keyframes waveFlow {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-40%);
    }
}

.liquid-fill,
.wave-surface,
.wave-surface-blue {
    will-change: transform, background-position;
}

.floating-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(77, 124, 255, 0.5);
    box-shadow: 0 0 6px rgba(77, 124, 255, 0.2);
    mask: radial-gradient(circle 150px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 120px, transparent 200px);
    -webkit-mask: radial-gradient(circle 150px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 120px, transparent 200px);
}

.skill-box:hover .floating-border {
    opacity: 1;
}

.skill-box:nth-child(1) .floating-border {
    border-color: #ff4da6;
    box-shadow: 0 0 12px rgba(255, 77, 166, 0.6);
}

.skill-box:nth-child(2) .floating-border {
    border-color: #4d7cff;
    box-shadow: 0 0 12px rgba(77, 124, 255, 0.6);
}

/* Works section Styles */
.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--hover-clr);
    color: #fff;
    box-shadow: var(--hover-clr);
}

.filter-btn.active {
    border-color: var(--hover-clr);
    color: #fff;
    box-shadow: var(--hover-clr);
}

.work-card {
    transition: all 0.4s ease;
}

    .work-card:hover {
        border-color: rgba(178, 77, 255, 0.5);
        box-shadow: 0 0 25px rgba(178, 77, 255, 0.3);
    }

.projects-desc h3 {
    margin-bottom: 5px;
}

.works-img {
    right: 0;
    opacity: 0.9;
}

/*Trust section Styles*/
.stat-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 170px;
    height: 100px;
    border-radius: 25px;
    position: relative;
    background: rgba(10, 10, 15, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.4s ease;
}

    .stat-badge:hover {
        background: rgba(178, 77, 255, 0.15);
        border-color: rgba(178, 77, 255, 0.6);
        box-shadow: 0 0 25px rgba(178, 77, 255, 0.3);
        transform: translateY(-5px);
    }

.badge-ring {
    position: absolute;
    inset: 0;
    border-radius: 15px;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #4d7cff, #b24dff, #ff4da6) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    -webkit-mask-composite: xor;
    opacity: 0.4;
    transition: opacity 0.4s;
}

.stat-badge:hover .badge-ring {
    opacity: 1;
}

.badge-label {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse-ring {
    position: absolute;
    inset: -10px;
    border-radius: 15px;
    border: 1px solid rgba(178, 77, 255, 0.7);
    opacity: 0;
    animation: pulseRing 2s ease-out infinite;
}

.stat-badge.visible .pulse-ring {
    opacity: 0.6;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

.stat-number {
    font-size: 2rem;
    display: inline-block;
    transition: all 0.2s ease;
}

.stat-box .floating-border {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 1px solid var(--neon-glow, #4d7cff);
    box-shadow: 0 0 6px var(--neon-glow);
    mask: radial-gradient(circle 120px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 60px, transparent 120px);
    -webkit-mask: radial-gradient(circle 120px at var(--mouse-x, 50%) var(--mouse-y, 50%), black 60px, transparent 120px);
}

.stat-box:hover .floating-border {
    opacity: 0.7;
}

.stat-box:nth-child(1) {
    --neon-glow: #4d7cff;
}

.stat-box:nth-child(2) {
    --neon-glow: #b24dff;
}

.stat-box:nth-child(3) {
    --neon-glow: #ff4da6;
}

.trust-statue {
    scale: .8;
    position: absolute;
    right: -23rem;
    top: -3.5rem;
}

.service-decor-img-3 {
    position: absolute;
    bottom: -3%;
    left: -12%;
    width: 75rem;
    opacity: 0.9;
    pointer-events: none;
    z-index: -10;
}

/*footer section Styles*/

.footer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #6b7280;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, #b24dff, transparent);
    opacity: 0.5;
    margin-bottom: 0;
}

    .footer-icon:hover {
        color: #fff;
        transform: translateY(-2px);
    }

    .footer-icon:nth-child(1):hover {
        border-color: #ff4da6;
        box-shadow: 0 0 10px rgba(255, 77, 166, 0.5);
        color: #ff4da6;
    }

    .footer-icon:nth-child(2):hover {
        border-color: #4d7cff;
        box-shadow: 0 0 10px rgba(77, 124, 255, 0.5);
        color: #4d7cff;
    }

    .footer-icon:nth-child(3):hover {
        border-color: #b24dff;
        box-shadow: 0 0 10px rgba(178, 77, 255, 0.5);
        color: #b24dff;
    }

    .footer-icon:nth-child(4):hover {
        border-color: #ff4da6;
        box-shadow: 0 0 10px rgba(255, 77, 166, 0.5);
        color: #ff4da6;
    }

/*Contact uss section Styles*/

.contact-image-wrapper {
    overflow: hidden;
    border-radius: 1.5rem;
    height: 250px;
    position: relative;
}

.contact-image {
    position: absolute;
    top: -1rem;
    right: -3rem;
    height: 116%;
    object-fit: cover;
}

#contact .glass-card {
    overflow: visible;
    padding-right: 0;
}

#contact .bg-neon-purple\/30 {
    animation: statueGlow 4s ease-in-out infinite alternate;
}

@keyframes statueGlow {
    from {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.2;
    }

    to {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.45;
    }
}

#contact .italic {
    color: #b0b0c0;
    line-height: 2;
    position: relative;
    margin-right: 1.5rem;
}

    #contact .italic::before {
        content: '';
        display: block;
        width: 40px;
        height: 2px;
        background: linear-gradient(90deg, #b24dff, transparent);
        margin: 0 auto 10px;
        border-radius: 2px;
        box-shadow: 0 0 8px rgba(178, 77, 255, 0.5);
    }

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

    .input-group input,
    .input-group textarea {
        width: 100%;
        background: transparent;
        border: none;
        outline: none;
        padding: 0.6rem 0;
        color: #fff;
        font-size: 1rem;
        font-family: inherit;
        transition: all 0.3s ease;
        resize: none;
        overflow: hidden;
    }

    .input-group label {
        position: absolute;
        top: 0.6rem;
        right: 0;
        color: #6b7280;
        font-size: 1rem;
        pointer-events: none;
        transition: all 0.3s ease;
    }

.input-line {
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    position: relative;
}

    .input-line::after {
        content: '';
        position: absolute;
        bottom: 0;
        right: 0;
        width: 0;
        height: 1.5px;
        background: linear-gradient(90deg, #4d7cff, #b24dff);
        transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1.2);
        box-shadow: 0 0 8px rgba(77, 124, 255, 0.5);
    }

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -0.8rem;
    font-size: 0.75rem;
    color: #4d7cff;
}

.input-group input:focus ~ .input-line::after,
.input-group textarea:focus ~ .input-line::after {
    width: 100%;
}

.send-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 2rem;
    width: auto;
    min-width: 160px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9999px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    position: relative;
    overflow: hidden;
}

    .send-btn:hover {
        border-color: #4d7cff;
        box-shadow: 0 0 20px rgba(77, 124, 255, 0.4);
        background: rgba(77, 124, 255, 0.1);
        transform: translateY(-2px);
    }

    .send-btn i {
        font-size: 0.9rem;
        transition: transform 0.3s ease;
    }

    .send-btn:hover i {
        transform: translateX(-4px);
    }

#contact .bg-gradient-to-r {
    background: none;
}

#contact-message.success {
    background: rgba(34, 197, 94, 0.15) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.3) !important;
    color: #4ade80 !important;
}

#contact-message.error {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3) !important;
    color: #f87171 !important;
}

#contact-message i {
    margin-left: 6px;
}

.work-item-hidden {
    display: none !important;
}

/*Admin Styles*/

.dashboard-body {
    background: radial-gradient(125% 125% at 50% 10%, #0a0a0f 50%, #1a1040 100%);
    min-height: 100vh;
    font-family: 'Vazir', sans-serif;
    padding: 2rem 1rem;
}

.dashboard-container {
    max-width: 950px;
    margin: 0 auto;
}

.admin-header-glass {
    background: rgba(15, 15, 25, 0.6);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 1rem;
    z-index: 10;
}

    .admin-header-glass h1 {
        font-size: 1.4rem;
        font-weight: 700;
        color: #fff;
        display: flex;
        align-items: center;
        gap: 0.6rem;
    }

.msg-count-badge {
    background: rgba(178, 77, 255, 0.2);
    border: 1px solid rgba(178, 77, 255, 0.3);
    color: #b24dff;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.logout-btn {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

    .logout-btn:hover {
        color: #ff4da6;
        border-color: rgba(255, 77, 166, 0.5);
        box-shadow: 0 0 12px rgba(255, 77, 166, 0.3);
    }

.messages-grid {
    display: grid;
    gap: 1rem;
}

.msg-card {
    background: rgba(15, 15, 25, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1.2);
    animation: fadeSlideIn 0.5s ease forwards;
    opacity: 0;
    display: grid;
    gap: 1rem;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msg-card:nth-child(1) {
    animation-delay: 0s;
}

.msg-card:nth-child(2) {
    animation-delay: 0.08s;
}

.msg-card:nth-child(3) {
    animation-delay: 0.16s;
}

.msg-card:nth-child(4) {
    animation-delay: 0.24s;
}

.msg-card:nth-child(5) {
    animation-delay: 0.32s;
}

.msg-card:hover {
    border-color: rgba(178, 77, 255, 0.35);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 18px rgba(178, 77, 255, 0.15);
    transform: translateY(-3px);
}

.msg-card.unread {
    border-right: 3px solid #ff4da6;
    background: rgba(255, 77, 166, 0.04);
}

.msg-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.msg-user-info {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.msg-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4d7cff, #b24dff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.msg-sender {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}

.msg-email {
    color: #4d7cff;
    font-size: 0.8rem;
    margin-top: 2px;
}

.msg-date {
    color: #6b7280;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.msg-body {
    color: #d1d5db;
    font-size: 0.92rem;
    line-height: 1.8;
    padding-right: 0.5rem;
}

.msg-tag {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.unread-tag {
    background: rgba(255, 77, 166, 0.15);
    color: #ff4da6;
    border: 1px solid rgba(255, 77, 166, 0.3);
}

.read-tag {
    background: rgba(107, 114, 128, 0.1);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    background: rgba(15, 15, 25, 0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
}

.empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(178, 77, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: #b24dff;
}

.empty-state h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6b7280;
    font-size: 0.9rem;
}

.admin-body {
    background: radial-gradient(125% 125% at 50% 10%, #0a0a0f 50%, #1a1040 100%);
    min-height: 100vh;
    font-family: 'Vazir', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
}

.login-glass {
    background: rgba(15, 15, 25, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: floatLogin 4s ease-in-out infinite alternate;
}

@keyframes floatLogin {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-6px);
    }
}

.login-glass h2 {
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #4d7cff, #b24dff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.admin-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

    .admin-input::placeholder {
        color: #6b7280;
    }

    .admin-input:focus {
        border-color: #4d7cff;
        box-shadow: 0 0 12px rgba(77, 124, 255, 0.25);
    }

.admin-btn {
    width: 100%;
    padding: 0.9rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #4d7cff, #b24dff);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

    .admin-btn:hover {
        box-shadow: 0 0 22px rgba(178, 77, 255, 0.6);
        transform: translateY(-2px);
    }

.error-msg {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}


/*Media Queries*/

@media (min-width: 768px) {
    #contact .italic::before {
        margin: 0 0 12px auto;
    }
}

@media (max-width: 767px) {
    #contact .order-1 {
        order: 1;
    }

    #contact .order-2 {
        order: 2;
        margin-top: 2rem;
    }

    .admin-header-glass {
        padding: 1rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .msg-card {
        padding: 1rem 1.25rem;
    }

    .msg-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-glass {
        padding: 2rem 1.25rem;
    }

}

@media (max-width: 576px) {
    #back-to-top {
        display: none !important;
    }

    .roban-1 {
        scale: 5.2;
        top: 2rem;
        right: 8.5rem;
    }

    .roban-2 {
        display: none;
    }

    #navbar {
        padding: 0 20px;
    }

    .glass-card-hero {
        margin-top: 3rem;
    }

    #services {
        margin-top: 8rem;
    }

    .hero-img {
        height: auto;
        position: absolute;
        left: .4rem;
        scale: 1.5;
        bottom: -1rem;
        top: auto;
    }

    .hero-img-wrapper {
        height: 12rem;
    }

    #hero {
        margin-top: 8rem;
    }

    .service-decor-img {
        position: absolute;
        top: 30%;
        width: auto;
        right: 57%;
        scale: 2.5;
        opacity: 0.7;
        pointer-events: none;
        z-index: -10;
    }

    .service-decor-img-2 {
        position: absolute;
        top: 25%;
        left: 20%;
        width: auto;
        opacity: 0.9;
        scale: 2;
        pointer-events: none;
        z-index: -10;
    }

    body::-webkit-scrollbar {
        display: none;
    }

    .stat-badge {
        width: 90px;
        height: 80px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .badge-label {
        font-size: 0.6rem;
    }

    .trust-card {
        min-height: 43rem;
    }

    .trust-statue {
        scale: 1.6;
        position: absolute;
        right: -6rem;
        top: auto;
        bottom: -1rem;
    }

    .service-decor-img-3 {
        position: absolute;
        bottom: 10rem;
        left: 8rem;
        width: auto;
        scale: 2.5;
        opacity: 0.9;
        pointer-events: none;
        z-index: -10;
    }

    .contact-image-wrapper {
        display: none;
    }

    #contact .glass-card {
        padding: 2rem;
    }

    #contact .italic {
        margin-right: 0;
    }

    .works-img {
        scale: 3.1;
        right: 25rem;
        opacity: 0.9;
    }
}
