/* Variables */
:root {
    --primary-color: #0051FF;
    --secondary-color: #2563eb;
    --gradient-primary: linear-gradient(135deg, #0051FF 0%, #2563eb 100%);
    --text-color: #1f2937;
    --light-text: #6b7280;
    --dark-bg: #111827;
    --transition: all 0.3s ease;
}

/* Fonts */
@font-face {
    font-family: IRANSans;
    src: url('../fonts/IRANSans/IRANSansWeb.eot');
    src: url('../fonts/IRANSans/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
         url('../fonts/IRANSans/IRANSansWeb.woff2') format('woff2'),
         url('../fonts/IRANSans/IRANSansWeb.woff') format('woff'),
         url('../fonts/IRANSans/IRANSansWeb.ttf') format('truetype');
    font-weight: normal;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'IRANSans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    background-color: #ffffff;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Header */
.main-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    height: 40px;
}

.navbar-nav .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 15px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color);
}

.btn-gradient {
    background: var(--gradient-primary);
    color: #fff !important;
    border-radius: 25px;
    padding: 8px 25px !important;
    transition: var(--transition);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 81, 255, 0.3);
}

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    color: #fff;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png');
    opacity: 0.1;
}

.gradient-text {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature-item i {
    margin-left: 10px;
    color: #4ade80;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-subtitle {
    color: var(--light-text);
    font-size: 1.1rem;
}

.service-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.1);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon i {
    font-size: 30px;
    color: #fff;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.service-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.service-features li i {
    color: var(--primary-color);
    margin-left: 10px;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: #fff;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-icon {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-text {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: #fff;
}

.contact-info {
    padding: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-left: 15px;
    margin-top: 5px;
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.form-control {
    height: 50px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 15px;
}

textarea.form-control {
    height: auto;
}

/* Footer */
.main-footer {
    background: var(--dark-bg);
    color: #fff;
    padding-top: 80px;
}

.footer-top {
    padding-bottom: 50px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-info p {
    opacity: 0.8;
    margin-bottom: 20px;
}

.footer-links h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #fff;
    opacity: 0.8;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-contact h4 {
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-contact p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    opacity: 0.8;
}

.footer-contact p i {
    margin-left: 10px;
    color: var(--primary-color);
}

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.copyright {
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    color: #fff;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

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