:root {
    --primary-color: #06b6d4;
    --secondary-color: #1e3a8a;
    --accent-color: #ff6b6b;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

@font-face {
  font-family: 'IRANSansX';
  src: url("../fonts/IRANSansMonoSpacedNum_Light.618ef8570038.ttf") format('truetype');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

body {
    font-family: 'IRANSansX', sans-serif;
    background-color: #f8f9fa;
}

.pwa-install-fab[hidden] {
    display: none;
}

.pwa-install-fab {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1040;
    display: flex;
    width: 4.25rem;
    height: 4.25rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    padding: 0;
    color: #ffffff;
    background: linear-gradient(145deg, #06b6d4, #1e3a8a);
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0.5rem 1.5rem rgba(30, 58, 138, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pwa-install-fab:hover,
.pwa-install-fab:focus-visible {
    color: #ffffff;
    transform: translateY(-0.2rem);
    box-shadow: 0 0.75rem 1.75rem rgba(30, 58, 138, 0.45);
}

.pwa-install-fab i {
    font-size: 1.35rem;
    line-height: 1;
}

.pwa-install-fab span {
    font-size: 0.72rem;
    font-weight: 700;
}

.pwa-install-modal {
    overflow: hidden;
    border: 0;
    border-radius: 1rem;
}

.pwa-modal-icon {
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(30, 58, 138, 0.15);
}

@media (max-width: 576px) {
    .pwa-install-fab {
        right: 1rem;
        bottom: 1rem;
        width: 3.75rem;
        height: 3.75rem;
    }
}

.z-index-1 {
    z-index: 1;
}

.gradient-custom {
    background: linear-gradient(135deg, #06b6d4 0%, #1e3a8a 100%);
}

.hero-section {
    background: linear-gradient(135deg, #06b6d4 0%, #1e3a8a 100%);
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
}

.hero-highlight {
    color: #fff;
    background: linear-gradient(135deg, #06b6d4, #1e3a8a);
    padding: 0.2rem 1rem;
    border-radius: 30px;
    font-weight: 800;
    display: inline-block;
    transform: rotate(-2deg);
    box-shadow: 0 4px 15px rgba(61, 90, 241, 0.3);
}

.hero-image-container {
    position: relative;
    padding: 20px;
    width: 350px;
    height: 350px;
    margin: 0 auto;
}

.hero-image {
    position: relative;
    z-index: 5;
    background: white;
    border-radius: 50%;
    padding: 20px;
    max-width: 80%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: scale(1.05);
}

.hero-floating-badge {
    position: absolute;
    background: white;
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    z-index: 2;
    top: 50%;
    right: 50%;
    transform-origin: center center;
    transition: transform 0.3s ease;
}

.hero-floating-badge:hover {
    z-index: 10;
    filter: brightness(1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-floating-badge i {
    font-size: 16px;
    color: var(--primary-color);
}

.badge-1, .badge-2, .badge-3 {
    animation: rotate-inner 20s linear infinite;
}

.badge-1 {
    animation-delay: 0s;
    transform: rotate(0deg) translateX(-70px) rotate(0deg);
}

.badge-2 {
    animation-delay: -6.67s; 
    transform: rotate(120deg) translateX(-70px) rotate(-120deg);
}

.badge-3 {
    animation-delay: -13.33s; 
    transform: rotate(240deg) translateX(-70px) rotate(-240deg);
}

.badge-4, .badge-5, .badge-6 {
    animation: rotate-outer 10s linear infinite;
}

.badge-4 {
    animation-delay: 0s;
    transform: rotate(0deg) translateX(150px) rotate(0deg);
}

.badge-5 {
    animation-delay: -8.33s; 
    transform: rotate(120deg) translateX(-120px) rotate(-120deg);
}

.badge-6 {
    animation-delay: -16.67s; 
    transform: rotate(240deg) translateX(-120px) rotate(-240deg);
}

@keyframes rotate-inner {
    0% {
        transform: rotate(0deg) translateX(-70px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(-70px) rotate(-360deg);
    }
}

@keyframes rotate-outer {
    0% {
        transform: rotate(0deg) translateX(-120px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(-120px) rotate(-360deg);
    }
}

@keyframes rotate-orbit {
    0% {
        transform: rotate(0deg) translateX(140px) rotate(0deg);
    }
    100% {
        transform: rotate(360deg) translateX(140px) rotate(-360deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

.feature-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
}

.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    right: 50%;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    opacity: 0;
}

.nav-link:hover::after {
    left: 0;
    right: 0;
    opacity: 1;
}

.carousel-item img {
    object-fit: cover;
    height: 400px;
    border-radius: 10px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-heading {
    position: relative;
    margin-bottom: 50px;
    font-weight: 700;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

footer {
    background: linear-gradient(135deg, #06b6d4 0%, #1e3a8a 100%);
    color: white;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    margin: 0 5px;
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

/* Modal Styles */
.auth-modal .modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.auth-modal .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 0.5rem;
}

.auth-modal .modal-body {
    padding: 1.5rem;
}

.auth-modal .form-control {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.auth-modal .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(61, 90, 241, 0.25);
    background-color: #fff;
}

.auth-modal .btn-block {
    border-radius: 50px;
    padding: 0.8rem;
    font-weight: 500;
}

.auth-modal .nav-auth {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.auth-modal .nav-auth-item {
    flex: 1;
    text-align: center;
    padding: 0.75rem 0;
    font-weight: 500;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.auth-modal .nav-auth-item.active {
    color: var(--primary-color);
}

.auth-modal .nav-auth-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.auth-modal .auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #6c757d;
}

.auth-modal .auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-modal .modal-logo {
    width: 80px;
    margin-bottom: 1rem;
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

.zoom-in {
    animation: zoomIn 1s ease forwards;
}

/* Animation Delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.fade-in-up:not(.animated) {
    opacity: 0;
}

.fade-in-up.animated {
    animation: fadeInUp 0.8s ease forwards;
}
