@font-face {
    font-family: 'IRANYekan';
    src: url('https://cdn.fontcdn.ir/Font/Persian/IRANYekan/IRANYekanWebRegular.woff2') format('woff2');
    font-weight: normal;
}

@font-face {
    font-family: 'IRANYekan';
    src: url('https://cdn.fontcdn.ir/Font/Persian/IRANYekan/IRANYekanWebBold.woff2') format('woff2');
    font-weight: bold;
}

:root {
    --primary-color: #0a0047;
    --secondary-color: #2d00f7;
    --accent-color: #6a00f4;
    --text-color: #ffffff;
    --glow-color: rgba(106, 0, 244, 0.5);
    --background-dark: #000000;
    --background-light: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Space Grotesk', 'IRANYekan', sans-serif;
    color: var(--text-color);
    background: var(--background-dark);
    overflow-x: hidden;
    line-height: 1.6;
}



.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 80px;
    height: 80px;
    border: 4px solid var(--text-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);

}

.navbar.scrolled {
    padding: 15px 40px;

    
}

.nav-logo {
    width: 60px;
    height: 60px;
    position: relative;
    cursor: pointer;
}

.nav-logo-container {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
}

.nav-logo-glow {
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: conic-gradient(
        from 0deg,
        transparent,
        var(--accent-color),
        transparent 30%
    );
    animation: rotateBorder 2s linear infinite;
}

.nav-logo img {
    position: absolute;
    top: 5%;
    left: 5%;
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 50%;
    z-index: 1;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-family: 'Syncopate', sans-serif;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    position: relative;
    padding: 5px 0;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a::before,
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--accent-color);
    transition: width 0.4s ease;
}

.nav-links a::before {
    left: 50%;
}

.nav-links a::after {
    right: 50%;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a:hover::before,
.nav-links a:hover::after {
    width: 50%;
}

.burger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    position: absolute;
    transition: all 0.3s ease;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 0; }

.burger.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 50%;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 40%;
}

.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        url('background/background.png') center/cover no-repeat;
    animation: scaleBackground 20s infinite alternate;
}

@keyframes scaleBackground {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    padding: 0 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-title {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
    background: linear-gradient(45deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px var(--glow-color));
}

.hero-title::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    -webkit-text-fill-color: transparent;
    filter: blur(15px);
    opacity: 0.5;
    animation: glowPulse 3s infinite;
}

.about {
    padding: 120px 40px;
    background: linear-gradient(to bottom, var(--background-dark), var(--background-light));
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, var(--accent-color) 0%, transparent 70%);
    opacity: 0.1;
    pointer-events: none;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-content.visible {
    transform: translateY(0);
    opacity: 1;
}

.about h2 {
    font-family: 'Syncopate', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 40px;
    background: linear-gradient(45deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.about p {
    font-family: 'IRANYekan', sans-serif;
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: center;
    opacity: 0.9;
}

.gallery {
    padding: 120px 40px;
    background: linear-gradient(to bottom, var(--background-light), var(--background-dark));
    position: relative;
    overflow: hidden;
}

.gallery h2 {
    font-family: 'Syncopate', sans-serif;
    text-align: center;
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 60px;
    background: linear-gradient(45deg, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transform: scale(1);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        var(--accent-color),
        transparent
    );
    opacity: 0;
    transition: opacity 0.6s ease;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(106, 0, 244, 0.3);
}

.gallery-item:hover::before {
    opacity: 0.5;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.8),
        transparent
    );
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h3 {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.gallery-overlay p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.social-container {
    position: fixed;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.social-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: rgba(106, 0, 244, 0.2);
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-btn::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, var(--accent-color), transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-btn:hover::before {
    opacity: 1;
}

.social-btn i {
    position: relative;
    z-index: 1;
    transition: transform 0.4s ease;
}

.social-btn:hover i {
    transform: scale(1.2) rotate(360deg);
}

.social-btn:hover {
    box-shadow: 0 0 30px var(--glow-color);
    transform: translateY(-5px);
}

.music-player {
    position: fixed;
    bottom: 15px;
    left: 20px;
    background: rgba(10, 0, 71, 0.9);
    padding: 20px 30px;
    border-radius: 50px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1000;
    transform: translateY(100px);
    animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards 1s;
}

.music-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.music-btn {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.0rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.music-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.music-btn:hover::before {
    transform: scale(1);
}

.music-btn i {
    position: relative;
    z-index: 1;
}

.music-btn:hover i {
    transform: scale(1.1);
}

.volume-slider {
    width: 100px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.2);
    height: 5px;
    border-radius: 5px;
    outline: none;
    position: relative;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    background: var(--text-color);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.gallery-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.gallery-fullscreen img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.gallery-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.copyright {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 0, 71, 0.9);
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 0.7rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

@keyframes heroReveal {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes rotateBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        filter: blur(15px);
    }
    50% {
        opacity: 0.8;
        filter: blur(20px);
    }
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .burger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(10, 0, 71, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        margin: 20px 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .social-container {
        right: 10px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        padding: 30px;
        margin: 20px;
    }

    .music-player {
        left: 50%;
        transform: translateX(-50%) translateY(100px);
        animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        flex-direction: column;
        padding: 15px;
    }
}

.copy-text {
    text-decoration: underline;
    color: rgb(153, 0, 255);
    cursor: pointer;
}
