:root {
    --primary-color: #4a6bff;
    --secondary-color: #3a5bef;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: 2px solid rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --blur: blur(10px);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Shabnam, sans-serif;
}

@font-face {
    font-family: Shabnam;
    src: url('Shabnam.woff2') format('woff2'),
            url('Shabnam.eot'),
            url('Shabnam.ttf') format('truetype'),
            url('Shabnam.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    color: black;
    overflow-x: hidden;
    line-height: 1.6;
    background: linear-gradient(135deg, #ff6000, #329720, #11009f);
    background-size: 400% 400%;
    animation: gradientBG 7s ease infinite;
}

@keyframes gradientBG {
    0% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
    100% { background-position: 0% 50% }
}

/* هدر و ناوبری */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    box-shadow: var(--glass-shadow);
    border-bottom: var(--glass-border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: black;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-left: 10px;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
    position: relative;
}

.nav-links a {
    color: black;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 0;
}

.nav-links a:hover {
    color: black;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    transition: var(--transition);
}

.hamburger:hover {
    color: var(--primary-color);
}

/* بخش‌های اصلی */
section {
    padding: 100px 10%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 15px;
    padding: 40px;
    margin: 20px auto;
    max-width: 800px;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.5);
}

h1, h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

h2 {
    font-size: 2.5rem;
}

p {
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 12px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    margin-top: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    background: var(--secondary-color);
    color: white;
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: var(--blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 15px;
    padding: 30px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(100, 166, 252, 0.25);
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-info i {
    margin-left: 10px;
    color: var(--primary-color);
    width: 25px;
}

/* فوتر */
footer {
    background: rgba(51, 47, 65, 0.9);
    backdrop-filter: var(--blur);
    padding: 50px 10%;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    list-style: none;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.footer-links li {
    margin: 0 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-icons {
    margin-bottom: 30px;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: var(--transition);
    display: inline-block;
}

.social-icons a:hover {
    color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* دکمه بازگشت به بالا */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Circuit pattern overlay */
.circuit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path d="M10,50 Q50,30 90,50 T170,50" stroke="rgba(255,255,255,0.05)" stroke-width="1" fill="none"/><path d="M10,100 Q50,80 90,100 T170,100" stroke="rgba(255,255,255,0.05)" stroke-width="1" fill="none"/><path d="M10,150 Q50,130 90,150 T170,150" stroke="rgba(255,255,255,0.05)" stroke-width="1" fill="none"/><rect x="50" y="45" width="20" height="10" fill="rgba(255,255,255,0.05)"/><rect x="130" y="95" width="20" height="10" fill="rgba(255,255,255,0.05)"/><circle cx="30" cy="50" r="5" fill="rgba(255,255,255,0.05)"/><circle cx="170" cy="100" r="5" fill="rgba(255,255,255,0.05)"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 0.8;
    z-index: -1;
}

.ieee-link {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.ieee-link:hover {
    color: var(--primary-color);
}

.ieee-link i {
    margin-left: 8px;
    color: var(--primary-color);
}

/* نسخه موبایل */
@media (max-width: 768px) {
    body {
        background: linear-gradient(135deg, #1a2980, #26d0ce, #ac41b9);
        animation: none;
     }
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background: white;
        backdrop-filter: var(--blur);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 40px;
        transition: all 0.5s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-links a::after {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 100px 5%;
    }
    
    .glass-card {
        padding: 25px;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .glass-card {
        padding: 20px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}