/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

:root {
    /* رنگ‌های حالت روز */
    --primary-color: #1e88e5;
    --secondary-color: #ff9800;
    --accent-color: #e74c3c;
    --dark-color: #1a237e;
    --light-color: #f8f9fa;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* حالت شب */
.dark-mode {
    --primary-color: #64b5f6;
    --secondary-color: #ffb74d;
    --accent-color: #ef5350;
    --dark-color: #121858;
    --light-color: #1a1a2e;
    --text-color: #f0f0f0;
    --text-light: #b0b0b0;
    --bg-color: #0d0d1a;
    --card-bg: #1e1e3a;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color 0.5s ease;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== LOADING SCREEN ===== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader {
    text-align: center;
    color: white;
}

.basketball-loader {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
}

.ball {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff9800, #ff5722);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 20px;
    animation: bounce 0.8s infinite alternate;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.shadow {
    width: 60px;
    height: 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    left: 20px;
    animation: shadow 0.8s infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(40px) scale(1.1, 0.9); }
}

@keyframes shadow {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(0.8); opacity: 0.1; }
}

/* ===== TOP BAR ===== */
.top-bar {
    background-color: var(--dark-color);
    color: white;
    padding: 10px 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 100;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info span {
    margin-left: 20px;
}

.contact-info i {
    margin-left: 5px;
}

.social-icons a {
    color: white;
    margin: 0 8px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* ===== HEADER & NAVIGATION ===== */
#main-header {
    background-color: var(--bg-color);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: var(--transition);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--dark-color);
}

.logo-text {
    letter-spacing: 1px;
}

.logo-number {
    background-color: var(--secondary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-right: 15px;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link i {
    margin-left: 8px;
    font-size: 1.1rem;
}

.nav-link:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.admin-btn {
    background-color: var(--accent-color) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.8rem;
    margin-bottom: 20px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.8;
    max-width: 500px;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.6s both;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn i {
    margin-left: 8px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #e68900;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 152, 0, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--dark-color);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: white;
    transform: translateY(-3px);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(255, 152, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 152, 0, 0); }
}

.hero-stats {
    display: flex;
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.stat p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-frame {
    position: relative;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(255,255,255,0.9);
    color: var(--dark-color);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    font-weight: 600;
}

.image-badge i {
    margin-left: 8px;
    color: var(--secondary-color);
}

/* ===== SECTIONS COMMON STYLES ===== */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
    position: relative;
}

.section-title i {
    margin-left: 15px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.about-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-color);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.8rem;
}

.about-card h3 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.about-card p {
    color: var(--text-light);
    margin-bottom: 5px;
}

.about-text {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-top: 50px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.skills-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.skill-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-section {
    background-color: var(--light-color);
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.portfolio-image {
    height: 250px;
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 35, 126, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-link {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
}

.portfolio-link:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.portfolio-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.portfolio-tags .tag {
    background-color: rgba(30, 136, 229, 0.1);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.portfolio-date {
    color: var(--text-light);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.portfolio-date i {
    margin-left: 5px;
}

/* ===== BASKETBALL SECTION ===== */
.basketball-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 50px;
}

.stat-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--secondary-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 152, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.stat-card h3 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: var(--secondary-color);
}

.stat-card p {
    color: var(--text-light);
}

.basketball-skills {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.basketball-skills h3 {
    margin-bottom: 25px;
    color: var(--dark-color);
}

.skill-progress {
    margin-bottom: 20px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-header span {
    font-weight: 600;
}

.skill-header span:last-child {
    color: var(--secondary-color);
}

.progress-bar {
    height: 10px;
    background-color: rgba(0,0,0,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), #ffb74d);
    border-radius: 5px;
}

.live-scoreboard {
    background: linear-gradient(135deg, var(--dark-color), #283593);
    color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.live-scoreboard h3 {
    margin-bottom: 20px;
    text-align: center;
}

.scoreboard {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 25px;
}

.team {
    text-align: center;
}

.team-name {
    font-size: 1.3rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.team-score {
    font-size: 4rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.score-divider {
    font-size: 3rem;
    opacity: 0.5;
}

.score-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.score-btn {
    padding: 12px 25px;
    background-color: rgba(255,255,255,0.2);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.score-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.score-btn.reset {
    background-color: rgba(231, 76, 60, 0.8);
}

.score-btn.reset:hover {
    background-color: #e74c3c;
}

.basketball-gallery {
    margin-top: 50px;
}

.basketball-gallery h3 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* ===== CONTACT SECTION ===== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.contact-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    color: white;
    font-size: 1.5rem;
}

.contact-card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-form-container {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--dark-color);
    font-weight: 600;
    display: flex;
    align-items: center;
}

.form-group label i {
    margin-left: 8px;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.error-message {
    color: var(--accent-color);
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

/* ===== CHATBOT ===== */
.chatbot-container {
    position: fixed;
    bottom: 100px;
    left: 30px;
    width: 350px;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--dark-color), var(--primary-color));
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h4 {
    display: flex;
    align-items: center;
    margin: 0;
}

.chatbot-header h4 i {
    margin-left: 10px;
}

.chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chatbot-close:hover {
    background-color: rgba(255,255,255,0.2);
}

.chatbot-body {
    padding: 20px;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

.chat-message {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 15px;
    position: relative;
}

.chat-message.bot {
    background-color: rgba(30, 136, 229, 0.1);
    border-right: 4px solid var(--primary-color);
    margin-left: auto;
}

.chat-message.user {
    background-color: rgba(255, 152, 0, 0.1);
    border-left: 4px solid var(--secondary-color);
    margin-right: auto;
}

.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid rgba(0,0,0,0.1);
    border-radius: 30px;
    font-family: 'Vazirmatn', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
}

.chat-input button {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.chat-input button:hover {
    background-color: var(--dark-color);
    transform: scale(1.05);
}

.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(30, 136, 229, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(30, 136, 229, 0.4);
}

/* ===== MUSIC PLAYER ===== */
.music-player-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 300px;
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.2);
    z-index: 1000;
    display: none;
    overflow: hidden;
}

.player-header {
    background: linear-gradient(135deg, #673AB7, #9C27B0);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.player-header h4 {
    display: flex;
    align-items: center;
    margin: 0;
}

.player-header h4 i {
    margin-left: 10px;
}

.player-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.player-body {
    padding: 20px;
}

.now-playing {
    margin-bottom: 20px;
}

.song-info {
    text-align: center;
    margin-bottom: 20px;
}

.song-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.song-artist {
    color: var(--text-light);
    font-size: 0.9rem;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.player-controls button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.player-controls button:hover {
    background-color: var(--dark-color);
    transform: scale(1.05);
}

.progress-container {
    margin-bottom: 15px;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 5px;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-control i {
    color: var(--text-light);
}

.volume-control input {
    flex: 1;
}

.playlist {
    max-height: 200px;
    overflow-y: auto;
}

.playlist-title {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

#playlist-songs {
    list-style: none;
}

#playlist-songs li {
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#playlist-songs li:hover {
    background-color: rgba(0,0,0,0.05);
}

#playlist-songs li.active {
    background-color: rgba(30, 136, 229, 0.1);
    color: var(--primary-color);
}

.player-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #673AB7, #9C27B0);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(103, 58, 183, 0.3);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.player-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(103, 58, 183, 0.4);
}

/* ===== FOOTER ===== */
.main-footer {
    background-color: var(--dark-color);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-about .logo {
    color: white;
    margin-bottom: 20px;
}

.footer-about p {
    opacity: 0.8;
    line-height: 1.7;
    margin-bottom: 25px;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-links h3,
.footer-services h3,
.footer-newsletter h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.3rem;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-services a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.footer-links a i,
.footer-services a i {
    margin-left: 8px;
    font-size: 0.9rem;
}

.footer-links a:hover,
.footer-services a:hover {
    color: var(--secondary-color);
    padding-right: 10px;
}

.footer-newsletter p {
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.6;
}

#newsletter-form {
    display: flex;
    gap: 10px;
}

#newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 30px;
    font-family: 'Vazirmatn', sans-serif;
    background-color: rgba(255,255,255,0.1);
    color: white;
}

#newsletter-form input::placeholder {
    color: rgba(255,255,255,0.6);
}

#newsletter-form button {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

#newsletter-form button:hover {
    background-color: #e68900;
    transform: scale(1.05);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 8px;
}

.footer-bottom i {
    color: var(--accent-color);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    box-shadow: 0 5px 20px rgba(30, 136, 229, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--dark-color);
    transform: translateX(-50%) scale(1.1);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-text {
    animation: fadeInUp 1s ease;
}

/* ===== MODAL ===== */
.portfolio-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1001;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--card-bg);
    width: 90%;
    max-width: 900px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.2);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: var(--transition);
}

.close-modal:hover {
    background-color: var(--accent-color);
}

.modal-body {
    display: flex;
    min-height: 500px;
}

.modal-body img {
    width: 50%;
    object-fit: cover;
}

.modal-info {
    padding: 40px;
    flex: 1;
}

.modal-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.modal-info p {
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-light);
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.modal-tags .tag {
    background-color: rgba(30, 136, 229, 0.1);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        margin-bottom: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .top-bar-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .nav-menu {
        position: fixed;
        top: 100px;
        right: -100%;
        width: 80%;
        height: calc(100vh - 100px);
        background-color: var(--card-bg);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        z-index: 998;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        margin: 0 0 25px 0;
        width: 80%;
    }
    
    .nav-link {
        justify-content: center;
        padding: 15px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .modal-body img {
        width: 100%;
        height: 300px;
    }
    
    .chatbot-container,
    .music-player-widget {
        width: 90%;
        left: 5%;
        right: 5%;
    }
    
    .chatbot-toggle,
    .player-toggle {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .player-toggle {
        left: auto;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .basketball-stats {
        grid-template-columns: 1fr;
    }
    
    .scoreboard {
        flex-direction: column;
        gap: 20px;
    }
    
    .score-controls {
        flex-direction: column;
    }
}