@font-face {
    font-family: 'Vazirmatn';
    src: url('assets/fonts/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg-color: #f0f0f5;
    --text-color: #11111a;
    --card-bg: rgba(255, 255, 255, 0.7);
    --neon-blue: #0055ff;
    --neon-red: #ff0055;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition-speed: 0.3s;
}

html {
    scroll-behavior: smooth;
}


body.dark-mode {
    --bg-color: #08080c;
    --text-color: #e0e0e0;
    --card-bg: rgba(20, 20, 30, 0.7);
    --glass-bg: rgba(10, 10, 15, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Vazirmatn', Tahoma, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
}

.glassmorphism {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* دکمه تم */
.theme-toggle {
    position: fixed;
    top: 20px;
    left: 20px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 50%;
    background-image: linear-gradient(var(--bg-color), var(--bg-color)), linear-gradient(45deg, var(--neon-red), var(--neon-blue));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    width: 50px;
    height: 50px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: -2px 0 10px rgba(255, 0, 85, 0.5), 2px 0 10px rgba(0, 229, 255, 0.5);
}

.theme-toggle img {
    filter: drop-shadow(0 0 5px var(--text-color));
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 3s infinite;
    z-index: 10;
}

.scroll-down img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px var(--neon-blue));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -15px);
    }
    60% {
        transform: translate(-50%, -7px);
    }
}

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: transparent;
    border: 1px solid transparent;
    background-image: linear-gradient(var(--bg-color), var(--bg-color)), linear-gradient(45deg, var(--neon-red), var(--neon-blue));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99;
    
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    
    box-shadow: -2px 0 10px rgba(255, 0, 85, 0.5), 2px 0 10px rgba(0, 229, 255, 0.5);
}

.scroll-top img {
    width: 25px;
    height: 25px;
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--neon-blue);
    box-shadow: 0 0 20px var(--neon-blue);
}

.company-logo {
    max-width: 280px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.company-logo:hover {
    transform: scale(1.05);
}

.gradient-text {
    font-size: 4.5rem;
    font-weight: bold;
    background: linear-gradient(to right, var(--neon-red), var(--neon-blue));
    -webkit-background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    letter-spacing: 3px;
}

.neon-glow {
    position: relative;
}
.neon-glow::after {
    content: 'LinuBit';
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(to right, var(--neon-red), var(--neon-blue));
    -webkit-background-clip: text;
    color: transparent;
    filter: blur(15px);
    opacity: 0.7;
}

.subtitle {
    font-size: 1.3rem;
    opacity: 0.8;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.services-section {
    padding: 80px 10%;
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 8px;
    margin: 0 auto 40px auto;
    max-width: 400px;
    border-radius: 50px;
    position: relative;
}

.tab-slider {
    position: absolute;
    top: 8px;
    height: calc(100% - 16px);
    background: linear-gradient(45deg, var(--neon-red), var(--neon-blue));
    border-radius: 50px;
    z-index: 1;
    transition: left 0.3s ease-in-out, width 0.3s ease-in-out;
}

.tab-btn {
    flex: 1;
    position: relative;
    padding: 12px 20px;
    border: none;
    background: transparent;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 40px;
    transition: color 0.3s;    z-index: 2;
    white-space: nowrap;
}

.tab-btn.active {
    background: linear-gradienst(45deg, var(--neon-red), var(--neon-blue));
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.4), 0 0 15px rgba(0, 229, 255, 0.4);
    font-weight: 700;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.infrasrv {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 992px) {
    .infrasrv {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .infrasrv {
        grid-template-columns: 1fr;
    }
}

.card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
}

body.dark-mode .card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(45deg, var(--neon-red), var(--neon-blue));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: -5px 10px 20px rgba(255, 0, 85, 0.2), 5px 10px 20px rgba(0, 229, 255, 0.2);
}

.card-icon {
    display: inline-block;
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.card p {
    line-height: 1.6;
    opacity: 0.8;
}

.golden-highlights {
    padding: 40px 10%;
}

.highlights-box {
    padding: 40px;
    position: relative;
}

.highlights-box::before {
    content: '';
    position: absolute;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    z-index: -1;
    background: linear-gradient(45deg, var(--neon-red), var(--neon-blue));
    border-radius: 17px;
    filter: blur(8px);
    opacity: 0.4;
}

.highlights-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.highlights-list {
    list-style-type: none;
    font-size: 1.2rem;
    line-height: 2;
}

.highlights-list > li {
    position: relative;
    padding-right: 25px;
    margin-bottom: 15px;
}

.highlights-list > li::before {
    content: '★';
    position: absolute;
    right: 0;
    color: var(--neon-blue);
    text-shadow: 0 0 5px var(--neon-blue);
}

.highlights-list ul {
    list-style-type: circle;
    margin-right: 30px;
    margin-top: 10px;
    color: var(--text-color);
    opacity: 0.9;
}

.contact {
    padding: 60px 10%;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    background-color: var(--card-bg);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s;
}

.contact-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.3);
}

.contact-icon {
    width: 30px;
    height: 30px;
}

footer {
    text-align: center;
    padding: 20px;
    background-color: var(--card-bg);
    margin-top: 30px;
}

@media (max-width: 768px) {
    .gradient-text {
        font-size: 3rem;
    }
    .tabs-container {
        flex-direction: column;
        border-radius: 15px;
    }
    .tab-btn {
        border-radius: 10px;
    }
}
