@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;900&family=Space+Grotesk:wght@500;700&display=swap');
@import url('https://cdn.jsdelivr.net/npm/remixicon@4.2.0/fonts/remixicon.css');

* { margin:0; padding:0; box-sizing:border-box; }
::selection { background:#00d4ff; color:#000; }

body {
    font-family: 'Vazirmatn', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
    line-height: 1.8;
}

.light-mode { background: #f0f4ff; color: #1a1a1a; }

/* &#1607;&#1583;&#1585; &#1581;&#1585;&#1601;&#1607;&#8204;&#1575;&#1740; &#1576;&#1575; &#1608;&#1585;&#1608;&#1583;/&#1579;&#1576;&#1578;&#8204;&#1606;&#1575;&#1605; */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 9999;
    padding: 20px 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(30px);
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

header.scrolled {
    padding: 12px 0;
    background: rgba(0,0,0,0.8);
    box-shadow: 0 20px 50px rgba(0,212,255,0.2);
}

nav {
    max-width: 1700px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
}

.logo {
    font-size: 36px;
    font-weight: 900;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.menu a {
    color: #fff;
    margin: 0 28px;
    font-weight: 600;
    text-decoration: none;
    position: relative;
    transition: 0.4s;
}

.menu a::after {
    content: '';
    position: absolute;
    width: 0; height: 3px;
    bottom: -12px; left: 50%;
    background: #00d4ff;
    transition: 0.5s;
    border-radius: 3px;
    transform: translateX(-50%);
}

.menu a:hover::after { width: 100%; }

/* &#1583;&#1705;&#1605;&#1607;&#8204;&#1607;&#1575;&#1740; &#1608;&#1585;&#1608;&#1583; &#1608; &#1579;&#1576;&#1578;&#8204;&#1606;&#1575;&#1605; &#1583;&#1585; &#1607;&#1583;&#1585; */
.auth-buttons-header {
    display: flex;
    gap: 16px;
}

.auth-btn-header {
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.4s;
    backdrop-filter: blur(10px);
}

.login-header {
    background: #00d4ff;
    color: #000;
}

.register-header {
    background: transparent;
    color: #fff;
    border: 2px solid #00d4ff;
}

.login-header:hover { transform: scale(1.05); }
.register-header:hover { background: #00d4ff; color: #000; }

/* &#1586;&#1605;&#1740;&#1606;&#1607; &#1662;&#1575;&#1585;&#1575;&#1604;&#1575;&#1705;&#1587; &#1670;&#1606;&#1583;&#1604;&#1575;&#1740;&#1607; */
.hero-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -3;
    background: url('assets/img/datacenter-night.jpg') center/cover;
}

.layer1 { background: url('assets/img/layer1.png') center/cover; opacity: 0.3; }
.layer2 { background: url('assets/img/layer2.png') center/cover; opacity: 0.2; transform: translateY(-20%); }

/* &#1607;&#1740;&#1585;&#1608; &#1582;&#1601;&#1606; */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero .container {
    max-width: 1700px;
    margin: auto;
    padding: 0 50px;
    text-align: center;
}

.hero h1 {
    font-size: 96px;
    font-weight: 900;
    background: linear-gradient(90deg, #00d4ff, #fff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: holo 8s ease-in-out infinite;
    letter-spacing: -3px;
}

.hero p {
    font-size: 32px;
    margin: 30px 0 60px;
    opacity: 0.9;
    font-weight: 300;
}

/* &#1780;&#1776; &#1576;&#1582;&#1588; &#1580;&#1583;&#1740;&#1583; &#1583;&#1740;&#1578;&#1575;&#1587;&#1606;&#1578;&#1585; */
.datacenter-section {
    padding: 160px 0;
    position: relative;
}

.datacenter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    max-width: 1700px;
    margin: auto;
    padding: 0 50px;
}

.dc-card {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,212,255,0.2);
    border-radius: 32px;
    padding: 40px;
    transition: all 0.6s;
    position: relative;
    overflow: hidden;
}

.dc-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.1), transparent);
    transition: 0.8s;
}

.dc-card:hover::before { left: 100%; }
.dc-card:hover { transform: translateY(-20px) scale(1.03); border-color: #00d4ff; box-shadow: 0 30px 80px rgba(0,212,255,0.3); }

.dc-icon {
    font-size: 64px;
    background: linear-gradient(135deg, #00d4ff, #0066ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

/* &#1575;&#1606;&#1740;&#1605;&#1740;&#1588;&#1606; &#1607;&#1608;&#1604;&#1608;&#1711;&#1585;&#1575;&#1601;&#1740;&#1705; */
@keyframes holo {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(180deg); }
}