/* ==========================================================================
   SYSTEM 32 (سیستم ۳۲) - Modern 3D Tech Landing Page Style Sheet
   ========================================================================== */

:root {
    --font-primary: 'Vazirmatn', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-code: 'Fira Code', monospace;
    
    /* Core Color Palette */
    --bg-dark: #070913;
    --bg-card: rgba(14, 20, 38, 0.65);
    --bg-card-hover: rgba(22, 32, 60, 0.85);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Glowing Neon Accents */
    --cyan: #00f0ff;
    --cyan-glow: rgba(0, 240, 255, 0.35);
    --blue: #3b82f6;
    --blue-glow: rgba(59, 130, 246, 0.35);
    --purple: #8b5cf6;
    --purple-glow: rgba(139, 92, 246, 0.35);
    --emerald: #10b981;
    --telegram: #0088cc;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(0, 240, 255, 0.4);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-glow: 0 0 25px rgba(0, 240, 255, 0.25);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
    direction: rtl;
}

/* Ambient Animated Glow */
#ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 15% 20%, rgba(0, 240, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 75%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

/* Typography & Utility Classes */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

.text-center { text-align: center; }

.gradient-text {
    background: linear-gradient(135deg, #00f0ff 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.glass-card:hover {
    border-color: var(--border-highlight);
    box-shadow: 0 15px 35px -10px rgba(0, 240, 255, 0.15);
}

.highlight-card {
    border-color: rgba(0, 240, 255, 0.3);
    background: linear-gradient(145deg, rgba(14, 20, 38, 0.8), rgba(0, 240, 255, 0.05));
}

/* Buttons System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-primary);
}

.btn-lg {
    padding: 1.05rem 2.25rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1.1rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    color: #070913;
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.15);
}

.btn-glow {
    box-shadow: 0 0 20px var(--cyan-glow);
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-2px);
}

.btn-telegram {
    background: linear-gradient(135deg, #0088cc 0%, #00bfff 100%);
    color: #fff;
}

.btn-telegram:hover {
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.5);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    background: rgba(7, 9, 19, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-3d-box {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--cyan-glow);
    position: relative;
    transform: rotate(-5deg);
    transition: transform var(--transition-smooth);
}

.brand-logo:hover .logo-3d-box {
    transform: rotate(0deg) scale(1.05);
}

.logo-text {
    font-family: var(--font-code);
    font-weight: 900;
    font-size: 1.25rem;
    color: #070913;
}

.brand-name {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 800;
}

.brand-title .highlight {
    color: var(--cyan);
}

.brand-sub {
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
    font-family: var(--font-code);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    right: 0;
    width: 0%;
    height: 2px;
    background: var(--cyan);
    transition: width var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: 140px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 1rem;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--cyan);
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.hero-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.2rem;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.25rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    width: fit-content;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 900;
    font-family: var(--font-code);
    color: var(--cyan);
    line-height: 1;
}

.stat-unit {
    font-size: 1.2rem;
    color: var(--cyan);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* 3D Hero Canvas Container */
.hero-canvas-container {
    position: relative;
    width: 100%;
    height: 480px;
}

.canvas-3d-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

#hero-3d-canvas {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-lg);
    cursor: grab;
}

#hero-3d-canvas:active {
    cursor: grabbing;
}

.floating-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: rgba(14, 20, 38, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    box-shadow: var(--shadow-card);
    animation: float 4s ease-in-out infinite;
}

.badge-1 { top: 10%; right: -10px; animation-delay: 0s; }
.badge-2 { bottom: 25%; right: 10px; animation-delay: 1.5s; }
.badge-3 { top: 50%; left: -10px; animation-delay: 3s; }

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

.scroll-down-indicator {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.mouse-icon {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--cyan);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% { top: 6px; opacity: 1; }
    100% { top: 22px; opacity: 0; }
}

/* Sections Common */
.section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-subtitle {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
}

/* About Section Grid */
.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.about-card {
    padding: 2.5rem 2rem;
    text-align: center;
}

.card-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--cyan);
    transition: transform var(--transition-smooth);
}

.about-card:hover .card-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.about-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Services Grid & 3D Tilt Cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    perspective: 1000px;
}

.service-card {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.featured-service {
    border-color: var(--cyan);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

.featured-ribbon {
    position: absolute;
    top: 20px;
    left: -35px;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
    color: #070913;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.25rem 2.5rem;
    transform: rotate(-45deg);
    box-shadow: 0 0 10px var(--cyan-glow);
}

.service-badge {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--cyan);
    padding: 0.2rem 0.75rem;
    background: rgba(0, 240, 255, 0.1);
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.service-icon {
    font-size: 2.5rem;
    color: var(--cyan);
    margin-bottom: 1.25rem;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 0.85rem;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.service-features li i {
    color: var(--cyan);
    font-size: 0.85rem;
}

.service-action {
    margin-top: auto;
}

/* Architecture Pipeline */
.arch-pipeline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 3rem;
}

.arch-step {
    flex: 1;
    padding: 2rem;
    text-align: center;
    position: relative;
}

.step-num {
    font-family: var(--font-code);
    font-size: 2rem;
    font-weight: 900;
    color: var(--cyan);
    opacity: 0.4;
    position: absolute;
    top: 15px;
    right: 20px;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--cyan);
    margin: 0 auto 1.2rem auto;
}

.arch-step h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.arch-step p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.arch-connector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--cyan);
    font-size: 1.25rem;
}

.pulse-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

/* Interactive Calculator */
.calculator-wrapper {
    padding: 3.5rem 3rem;
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    margin-top: 2.5rem;
    align-items: center;
}

.calc-controls {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 0.95rem;
}

.value-display {
    color: var(--cyan);
    font-family: var(--font-code);
    font-weight: 700;
}

.slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--cyan);
    cursor: pointer;
    box-shadow: 0 0 12px var(--cyan);
    transition: transform var(--transition-fast);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-results {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.result-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.result-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.result-value {
    font-size: 1.35rem;
    font-weight: 800;
    font-family: var(--font-code);
}

.calc-btn {
    margin-top: 1rem;
}

/* Portfolio Section */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: var(--font-primary);
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--cyan);
    color: var(--cyan);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.portfolio-card {
    overflow: hidden;
}

.port-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.port-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    transition: transform var(--transition-smooth);
}

.web-bg { background: linear-gradient(135deg, #1e293b, #0f172a); }
.crm-bg { background: linear-gradient(135deg, #1e1b4b, #312e81); }
.auto-bg { background: linear-gradient(135deg, #064e3b, #022c22); }
.web-bg-2 { background: linear-gradient(135deg, #4c1d95, #2e1065); }

.portfolio-card:hover .port-img-placeholder {
    transform: scale(1.08);
}

.port-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(7, 9, 19, 0.8);
    backdrop-filter: blur(8px);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--cyan);
    border: 1px solid var(--border-color);
}

.port-info {
    padding: 1.5rem;
}

.port-info h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.port-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.port-meta {
    display: flex;
    gap: 1.25rem;
    font-size: 0.8rem;
    color: var(--cyan);
    font-family: var(--font-code);
}

/* Why Section */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 2rem;
}

.why-item {
    display: flex;
    gap: 1.25rem;
}

.why-icon {
    width: 48px;
    height: 48px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--cyan);
    flex-shrink: 0;
}

.why-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.why-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.why-visual {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.system-32-badge {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 0 40px var(--cyan-glow);
}

.badge-ring {
    position: absolute;
    width: 220px;
    height: 220px;
    border: 2px dashed var(--cyan);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.badge-center {
    font-family: var(--font-code);
    font-weight: 900;
    font-size: 1.3rem;
    color: #070913;
}

.feature-pills {
    position: absolute;
    width: 100%;
    height: 100%;
}

.pill {
    position: absolute;
    padding: 0.5rem 1rem;
    background: rgba(7, 9, 19, 0.9);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pill-1 { top: 15%; right: 10%; }
.pill-2 { bottom: 15%; right: 15%; }
.pill-3 { top: 20%; left: 10%; }
.pill-4 { bottom: 20%; left: 10%; }

/* Contact Section & Direct Reach */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--cyan);
}

.telegram-icon {
    background: rgba(0, 136, 204, 0.15);
    border-color: rgba(0, 136, 204, 0.4);
    color: #0088cc;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-value {
    font-family: var(--font-code);
    font-size: 1.2rem;
    direction: ltr;
    text-align: right;
    color: var(--cyan);
}

.contact-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.guarantee-box {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.guarantee-box i {
    font-size: 2rem;
    color: var(--cyan);
}

.guarantee-box h4 {
    font-size: 1.05rem;
    margin-bottom: 0.2rem;
}

.guarantee-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Contact Form */
.contact-form-wrapper {
    padding: 2.5rem;
}

.contact-form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 1.75rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrapper i {
    position: absolute;
    right: 15px;
    color: var(--text-muted);
    font-size: 1rem;
    pointer-events: none;
}

.input-icon-wrapper input,
.input-icon-wrapper select,
.input-icon-wrapper textarea {
    width: 100%;
    padding: 0.85rem 2.8rem 0.85rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.input-icon-wrapper textarea {
    resize: vertical;
}

.input-icon-wrapper input:focus,
.input-icon-wrapper select:focus,
.input-icon-wrapper textarea:focus {
    outline: none;
    border-color: var(--cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    background: rgba(0, 240, 255, 0.03);
}

/* Floating Telegram Action Button */
.floating-tg-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0088cc 0%, #00bfff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(0, 136, 204, 0.5);
    z-index: 999;
    transition: transform var(--transition-smooth);
}

.floating-tg-btn:hover {
    transform: scale(1.1) rotate(-10deg);
}

.tg-tooltip {
    position: absolute;
    right: 75px;
    background: rgba(7, 9, 19, 0.9);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.floating-tg-btn:hover .tg-tooltip {
    opacity: 1;
}

/* Footer */
.footer {
    background: #04050a;
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    padding-bottom: 60px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 360px;
    font-size: 0.9rem;
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--cyan);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-contact p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-contact i {
    color: var(--cyan);
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    padding: 1rem 1.5rem;
    background: rgba(14, 20, 38, 0.95);
    border: 1px solid var(--cyan);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-grid, .why-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid, .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .calc-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-canvas-container {
        height: 380px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(7, 9, 19, 0.98);
        flex-direction: column;
        padding: 1.5rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .services-grid, .about-grid, .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .arch-pipeline {
        flex-direction: column;
    }
    
    .arch-connector {
        transform: rotate(90deg);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
