@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ================================================================
   VARIABLES - ENTERPRISE MINIMALISM
   ================================================================ */
:root {
    /* Pure Dark / Matte Finishes */
    --bg-main: #000000;
    --bg-card: #0A0A0A;
    --bg-card-hover: #111111;
    
    /* Sharp & Subtle Borders */
    --border-color: #222222;
    --border-hover: #333333;
    
    /* Professional Typography */
    --text-main: #EDEDED;
    --text-muted: #888888;
    
    /* Single Intentional Accent (Electric Tech Blue) */
    --accent-primary: #0070F3; 
    
    /* UI Elements */
    --radius-sm: 6px;
    --radius-md: 12px;
}

/* ================================================================
   RESET
   ================================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
    background: var(--bg-main);
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ================================================================
   PARTICLE CANVAS (Subtle Background)
   ================================================================ */
#particles-canvas, #particle-canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 1 !important;
    pointer-events: none;
    opacity: 0.4; /* کاهش شفافیت برای جلوگیری از شلوغی */
}

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 48px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #FFF;
    text-decoration: none;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 16px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

/* ================================================================
   MAIN CONTENT
   ================================================================ */
.content {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    width: min(1180px, 100%);
    margin: 0 auto;
    padding: 150px 24px 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-main);
    background: #111;
    padding: 6px 16px;
    border-radius: 99px;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
}

.badge i {
    color: var(--accent-primary);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

/* Metallic/Silver text instead of rainbow gradients */
.gradient-text {
    background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 650px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ================================================================
   BUTTONS (High Contrast Enterprise Style)
   ================================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #FFF;
    color: #000;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease, transform 0.2s ease;
    border: 1px solid #FFF;
}

.btn-primary:hover {
    background: #EAEAEA;
    transform: translateY(-1px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--text-main);
    text-decoration: none;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
    border-color: var(--text-muted);
    color: #FFF;
}

/* ================================================================
   GENERIC FULL SCREEN SECTION
   ================================================================ */
.page-section {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 120px 24px;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.section-inner {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.section-intro {
    max-width: 780px;
    margin-bottom: 50px;
}

.section-intro .eyebrow {
    margin-bottom: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.section-intro h2 {
    margin: 0;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    line-height: 1.1;
    letter-spacing: -1px;
    color: var(--text-main);
}

.section-intro p {
    margin-top: 20px;
    max-width: 650px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* ================================================================
   CARDS (Flat, Matte, Professional)
   ================================================================ */
.service-grid, .ipv4-grid, .about-grid {
    display: grid;
    gap: 20px;
    width: 100%;
}

.service-grid, .about-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ipv4-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.service-card, .ipv4-card, .about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 32px;
    border-radius: var(--radius-md);
    transition: background 0.2s ease, border-color 0.2s ease;
    position: relative;
}

/* حذف هاورهای پرانشی و جایگزینی با افکت‌های ظریف */
.service-card:hover, .ipv4-card:hover, .about-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.icon-box {
    width: 44px;
    height: 44px;
    background: #111;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 24px;
}

.service-card h3, .ipv4-card h3, .about-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.service-card p, .ipv4-card p, .about-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.about-card > i {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 20px;
    display: block;
}

/* ================================================================
   PARTICLE SHOWCASE (Divider sections)
   ================================================================ */
.particle-showcase {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 100px 24px;
    position: relative;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.particle-showcase__content {
    width: min(100%, 760px);
    text-align: center;
    position: relative;
    z-index: 3;
}

.particle-showcase__panel {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.particle-showcase__eyebrow {
    margin-bottom: 16px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.particle-showcase h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.particle-showcase p {
    margin: 20px auto 0;
    max-width: 580px;
    line-height: 1.7;
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ================================================================
   SPLIT CONTENT
   ================================================================ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.split-copy > p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
}

.feature-list {
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-main);
    font-size: 0.95rem;
}

.feature-list i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feature-panel {
    padding: 40px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: var(--radius-sm);
    background: #111;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.feature-panel h3 {
    margin: 0 0 12px;
    font-size: 1.4rem;
    letter-spacing: -0.5px;
}

.feature-panel p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ================================================================
   PROCESS STEPS
   ================================================================ */
.process {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.process-step {
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
    background: transparent;
}

.process-step span {
    display: block;
    margin-bottom: 12px;
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--text-muted);
}

.process-step h4 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.process-step p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* ================================================================
   STATS BAR
   ================================================================ */
.stats-bar {
    width: min(1000px, calc(100% - 48px));
    margin: 0 auto;
    padding: 60px 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.stat-number {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.stat-label {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* ================================================================
   CONTACT
   ================================================================ */
.contact-section {
    width: 100%;
    padding: 120px 24px;
    border-top: 1px solid var(--border-color);
}

.contact-card {
    width: min(900px, 100%);
    margin: 0 auto;
}

.contact-header {
    margin-bottom: 60px;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: background 0.2s ease;
}

.contact-box:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.contact-box .icon-box {
    margin-bottom: 0;
    width: 40px;
    height: 40px;
    font-size: 1rem;
    border: none;
    background: transparent;
}

.contact-box .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}

.contact-box .value {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ================================================================
   MOBILE RESPONSIVENESS
   ================================================================ */
@media (max-width: 1000px) {
    .service-grid, .about-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .stats-bar { flex-direction: column; gap: 40px; padding: 40px 0; }
    .stat-divider { width: 40px; height: 1px; }
}

@media (max-width: 760px) {
    .navbar { height: 60px; padding: 0 20px; }
    .nav-links { display: none; }
    .navbar .btn-primary { display: none; }
    
    .hero { padding: 120px 20px 60px; }
    .page-section { padding: 80px 20px; }
    
    .service-grid, .ipv4-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .contact-section { padding: 80px 20px; }
}