/* Custom Styles */

/* اطمینان از پس‌زمینه تیره برای جلوگیری از فلش سفید */
html, body {
    background-color: #202124;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Import Montserrat font (local copy) */
@import url('/assets/css/fonts.css');

/* Body styling */
body {
    font-family: 'Montserrat', sans-serif;
    user-select: none;
}

* {
    font-family: inherit;
}

/* Color Variables */
:root {
    --primary-color: aquamarine;
    --background-color: #202124;
    --text-color: #ffffff;
    --card-background: #2c2f33;
    --hover-opacity: 0.8;
}

/* Navbar */
nav {
    background-color: var(--background-color);
}

nav .flex.items-center.space-x-2 img {
    width: 40px;
    height: 40px;
}

nav .flex.items-center.space-x-2 span {
    display: flex;
    align-items: center;
}

/* کارت‌های ابزار */
.tool-card {
    background-color: var(--card-background);
    /* انیمیشن اولیه توسط GSAP در main.php انجام می‌شود */
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: var(--background-color);
}

/* جلوگیری از فلش سفید در پس‌زمینه هدر */
header {
    background-color: #202124;
}

.absolute.inset-0.flex.items-center.justify-center {
    background-color: #202124;
}

.hero-content h1 {
    color: var(--primary-color);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    color: #cccccc;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Tools Section */
#tools h2 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.tool-card h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tool-card p {
    color: #cccccc;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.tool-card .inline-block {
    color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.tool-card .inline-block:hover {
    background-color: rgba(127, 255, 212, var(--hover-opacity));
    color: #202124;
}

/* حذف اسکرول‌بار پیش‌فرض */
::-webkit-scrollbar {
    width: 0px !important;
    height: 0px !important;
}

/* 3D Canvas */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    /* اجازه اسکرول عمودی در موبایل */
    touch-action: pan-y;
}

.w-6:hover {
    color: #7fffd4;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    #tools h2 {
        font-size: 2rem;
    }

    .tool-card h3 {
        font-size: 1.25rem;
    }

    .tool-card p {
        font-size: 0.9rem;
    }

    .tool-card .inline-block {
        padding: 0.4rem 0.8rem;
    }
}
