@import url('fonts.css');
:root {
    --bg-color: #020202;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent-blue: #2979ff;
    --accent-glow: rgba(41, 121, 255, 0.4);
    --border-light: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.02);
    --cursor-size: 10px;
}

* {
    box-sizing: border-box;
    cursor: none;
    margin: 0;
    padding: 0;
}

::selection {
    background: var(--accent-blue);
    color: white;
}

body {
    font-family: 'YekanBakhFa', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

.noise-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.07;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
}

.gradient-orb {
    position: fixed;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.3;
    animation: breathe 10s infinite alternate ease-in-out;
}

.orb-1 {
    top: -20%;
    left: -10%;
    background: radial-gradient(circle, rgba(41, 121, 255, 0.2) 0%, transparent 70%);
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

@keyframes breathe {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }
    100% {
        transform: scale(1.1);
        opacity: 0.4;
    }
}

.cursor-main {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-size);
    height: var(--cursor-size);
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
}

body.hover-active .cursor-main {
    width: 0;
    height: 0;
    opacity: 0;
}

body.hover-active .cursor-ring {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

.main-wrapper {
    position: relative;
    z-index: 10;
    width: 95%;
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3vw;
    align-items: center;
    padding: 5vh 0;
    margin: 0 auto;
}

.info-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.logo-container {
    width: 120px;
    height: 129px;
    position: relative;
    margin-bottom: 4rem;
    perspective: 1000px;
}

.logo-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    z-index: 20;
}

.logo-cell {
    width: 100%;
    height: 100%;
}

.logo-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.logo-img img {
    width: 100%;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.1));
    border-radius: 20px;
}

.logo-cell:nth-child(1):hover~.logo-img {
    transform: rotateX(20deg) rotateY(20deg);
}

.logo-cell:nth-child(2):hover~.logo-img {
    transform: rotateX(20deg) rotateY(0deg);
}

.logo-cell:nth-child(3):hover~.logo-img {
    transform: rotateX(20deg) rotateY(-20deg);
}

.logo-cell:nth-child(4):hover~.logo-img {
    transform: rotateX(0deg) rotateY(20deg);
}

.logo-cell:nth-child(6):hover~.logo-img {
    transform: rotateX(0deg) rotateY(-20deg);
}

.logo-cell:nth-child(7):hover~.logo-img {
    transform: rotateX(-20deg) rotateY(20deg);
}

.logo-cell:nth-child(8):hover~.logo-img {
    transform: rotateX(-20deg) rotateY(0deg);
}

.logo-cell:nth-child(9):hover~.logo-img {
    transform: rotateX(-20deg) rotateY(-20deg);
}

h1.name {
    font-size: clamp(2.5rem, 3.5vw, 4rem);
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 1rem 0;
    color: white;
    opacity: 0;
    animation: slideUp 0.8s ease forwards 0.4s;
}

h2.subtitle {
    font-size: clamp(1.2rem, 2vw, 2.5rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin: 0 0 3rem 0;
    opacity: 0;
    animation: slideUp 0.8s ease forwards 0.6s;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    opacity: 0;
    animation: slideUp 0.8s ease forwards 0.8s;
}

.btn-mag {
    position: relative;
    padding: 1rem 2rem;
    border-radius: 100px;
    background: transparent;
    border: 1px solid var(--border-light);
    color: white;
    text-decoration: none;
    font-weight: 500;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 1;
}

.btn-mag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
}

.btn-mag:hover {
    border-color: white;
    color: black;
}

.btn-mag:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.books-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1s;
    width: 100%;
    overflow: hidden;
}

.books-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-right: 1rem;
}

.books-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.scroll-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: translateX(0);
    }
    50% {
        opacity: 1;
        transform: translateX(-5px);
    }
    100% {
        opacity: 0.5;
        transform: translateX(0);
    }
}

.books-scroll-wrapper {
    display: flex;
    gap: 2vw;
    overflow-x: auto;
    padding: 2rem 1rem 4rem 1rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: grab;
    outline: none;
}

.books-scroll-wrapper:active {
    cursor: grabbing;
}

.books-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.glass-card {
    min-width: 340px;
    max-width: 380px;
    flex-shrink: 0;
    scroll-snap-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--border-light);
    border-radius: 40px;
    padding: 3rem 2rem;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform-style: preserve-3d;
    transition: transform 0.1s;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    user-select: none;
    position: relative;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.08), transparent 40%);
    pointer-events: none;
}

.book-cover-container {
    width: 200px;
    height: 280px;
    position: relative;
    transform: translateZ(50px);
    transition: transform 0.5s ease;
    margin-bottom: 2rem;
    box-shadow: 0 25px 50px -10px rgba(0, 0, 0, 0.7);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111;
}

.book-cover-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    pointer-events: none;
}

.book-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translate(-50%, -50%) translateZ(-50px);
    background: var(--accent-blue);
    filter: blur(70px);
    opacity: 0.15;
    border-radius: 50%;
    transition: opacity 0.3s;
    pointer-events: none;
}

.glass-card:hover .book-glow {
    opacity: 0.35;
}

.glass-card:hover .book-cover-container {
    transform: translateZ(70px) scale(1.03) rotateX(5deg);
}

.book-info {
    transform: translateZ(30px);
    width: 100%;
}

.book-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.book-author {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    height: 40px;
}

.cta-glass {
    display: block;
    padding: 1rem 0;
    width: 100%;
    background: var(--accent-blue);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(41, 121, 255, 0.3);
    transition: all 0.3s;
}

.cta-glass:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(41, 121, 255, 0.5);
}

.badge-soon {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    border: 1px solid var(--border-light);
}

.marquee-container {
    position: fixed;
    bottom: 5vh;
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
}

.marquee-content {
    white-space: nowrap;
    font-size: 10rem;
    font-weight: 900;
    font-family: Arial, sans-serif;
    color: white;
    animation: marquee 40s linear infinite;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
        gap: 4rem;
        padding-top: 5rem;
        padding-bottom: 2rem;
        text-align: center;
    }
    .info-col {
        align-items: center;
    }
    .logo-container {
        margin-bottom: 2rem;
    }
    .actions {
        justify-content: center;
    }
    .cursor-main,
    .cursor-ring {
        display: none;
    }
    * {
        cursor: auto;
    }
    .glass-card {
        min-width: 300px;
        padding: 2.5rem 1.5rem;
    }
    h1.name {
        font-size: 2.5rem;
    }
    .books-scroll-wrapper {
        gap: 1.5rem;
    }
}