/* ===========================
   AmirGMC - Complete Style
   (تم اصلی با بهبودهای جزئی + کارت‌های شیشه‌ای + منوی همبرگری)
=========================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg: #11132a;
    --card: #1a1d44;
    --card2: #23275b;
    --blue: #43b5ff;
    --white: #ffffff;
    --text: #c9d0ff;
    --border: #2d3272;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
}

/* ===========================
   GRID BACKGROUND
=========================== */

.grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -2;
}

.grid::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent, #11132a 85%);
}

/* ===========================
   CONTAINER
=========================== */

.container {
    width: 88%;
    max-width: 1300px;
    margin: auto;
}

/* ===========================
   HEADER
=========================== */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 22px 0;
    backdrop-filter: blur(15px);
    background: rgba(17,19,42,.75);
    border-bottom: 1px solid rgba(255,255,255,.04);
    z-index: 999;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--blue);
    cursor: pointer;
    text-decoration: none;
}

/* ===========================
   HAMBURGER MENU (موبایل)
=========================== */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===========================
   MENU NAV - GLASS CARDS (دسکتاپ)
=========================== */

.menu-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.menu-item {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    animation: slideDown 0.5s ease forwards;
    opacity: 0;
}

.menu-item i {
    font-size: 16px;
    color: #43b5ff;
}

.menu-item:hover {
    transform: translateY(-4px) scale(1.04);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(67, 181, 255, 0.3);
    box-shadow: 0 8px 30px rgba(67, 181, 255, 0.15);
}

.menu-item.admin-item {
    border-color: rgba(255, 212, 59, 0.2);
}
.menu-item.admin-item i {
    color: #ffd43b;
}
.menu-item.admin-item:hover {
    border-color: rgba(255, 212, 59, 0.5);
    box-shadow: 0 8px 30px rgba(255, 212, 59, 0.15);
}

.menu-item.logout-item {
    border-color: rgba(255, 107, 107, 0.15);
}
.menu-item.logout-item i {
    color: #ff6b6b;
}
.menu-item.logout-item:hover {
    border-color: rgba(255, 107, 107, 0.4);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.12);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item:nth-child(1) { animation-delay: 0.05s; }
.menu-item:nth-child(2) { animation-delay: 0.10s; }
.menu-item:nth-child(3) { animation-delay: 0.15s; }
.menu-item:nth-child(4) { animation-delay: 0.20s; }
.menu-item:nth-child(5) { animation-delay: 0.25s; }
.menu-item:nth-child(6) { animation-delay: 0.30s; }
.menu-item:nth-child(7) { animation-delay: 0.35s; }
.menu-item:nth-child(8) { animation-delay: 0.40s; }
.menu-item:nth-child(9) { animation-delay: 0.45s; }
.menu-item:nth-child(10) { animation-delay: 0.50s; }

/* ===========================
   MOBILE MENU (همبرگری)
=========================== */

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 19, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.mobile-menu.active {
    display: flex;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
}

.mobile-item {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.3s ease forwards;
    opacity: 0;
}

.mobile-item:nth-child(1) { animation-delay: 0.05s; }
.mobile-item:nth-child(2) { animation-delay: 0.08s; }
.mobile-item:nth-child(3) { animation-delay: 0.11s; }
.mobile-item:nth-child(4) { animation-delay: 0.14s; }
.mobile-item:nth-child(5) { animation-delay: 0.17s; }
.mobile-item:nth-child(6) { animation-delay: 0.20s; }
.mobile-item:nth-child(7) { animation-delay: 0.23s; }
.mobile-item:nth-child(8) { animation-delay: 0.26s; }
.mobile-item:nth-child(9) { animation-delay: 0.29s; }
.mobile-item:nth-child(10) { animation-delay: 0.32s; }
.mobile-item:nth-child(11) { animation-delay: 0.35s; }

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.mobile-item i {
    font-size: 20px;
    color: #43b5ff;
    width: 30px;
    text-align: center;
}

.mobile-item:hover {
    transform: scale(1.02);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(67, 181, 255, 0.3);
}

.mobile-item.admin-item {
    border-color: rgba(255, 212, 59, 0.2);
}
.mobile-item.admin-item i {
    color: #ffd43b;
}

.mobile-item.logout-item {
    border-color: rgba(255, 107, 107, 0.15);
}
.mobile-item.logout-item i {
    color: #ff6b6b;
}

/* ===========================
   SOCIAL SIDEBAR
=========================== */

.social {
    position: fixed;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 18px;
    z-index: 50;
}

.social a {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--card);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--blue);
    font-size: 18px;
    transition: .35s;
}

.social a:hover {
    background: var(--blue);
    color: #111;
    transform: translateY(-6px);
}

/* ===========================
   HERO / HOME
=========================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 520px;
    gap: 90px;
    align-items: center;
}

.hello {
    font-size: 18px;
    color: var(--blue);
    margin-bottom: 15px;
}

.hero h1 {
    font-size: 72px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero span {
    color: var(--blue);
}

.hero h2 {
    font-size: 30px;
    font-weight: 500;
    color: #d7dcff;
    margin-bottom: 20px;
}

.hero-text {
    font-size: 17px;
    line-height: 34px;
    max-width: 520px;
    color: var(--text);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 16px 34px;
    background: var(--blue);
    color: #111;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    transition: .35s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(67,181,255,.4);
}

.btn-outline {
    padding: 16px 34px;
    border-radius: 14px;
    border: 1px solid var(--blue);
    text-decoration: none;
    color: var(--blue);
    transition: .35s;
    background: transparent;
    cursor: pointer;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--blue);
    color: #111;
}

.numbers {
    display: flex;
    gap: 60px;
    margin-top: 70px;
}

.numbers h3 {
    font-size: 38px;
    color: var(--blue);
}

.numbers span {
    color: var(--text);
}

/* ===========================
   IMAGE CARD
=========================== */

.image-card {
    width: 100%;
    height: 620px;
    border-radius: 30px;
    background: var(--card);
    padding: 20px;
    border: 1px solid var(--border);
}

.image-card img {
    width: 100%;
    height: 100%;
    border-radius: 22px;
    object-fit: cover;
}

/* ===========================
   SECTIONS
=========================== */

section {
    padding: 120px 0;
}

.title {
    text-align: center;
    margin-bottom: 70px;
}

.title p {
    color: var(--blue);
    margin-bottom: 12px;
}

.title h2 {
    font-size: 44px;
}

/* ===========================
   ABOUT
=========================== */

.about-grid {
    display: grid;
    grid-template-columns: 480px 1fr;
    gap: 70px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 24px;
}

.mini-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.mini-card {
    background: var(--card);
    padding: 35px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: .3s;
}

.mini-card:hover {
    transform: translateY(-8px);
    background: var(--card2);
}

.mini-card i {
    font-size: 30px;
    color: var(--blue);
    margin-bottom: 20px;
}

.about-content p {
    font-size: 16px;
    line-height: 34px;
    color: var(--text);
    margin-bottom: 40px;
}

/* ===========================
   SKILLS
=========================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.skill-box {
    background: var(--card);
    padding: 40px;
    border-radius: 22px;
    border: 1px solid var(--border);
    transition: .35s;
}

.skill-box:hover {
    transform: translateY(-8px);
    background: var(--card2);
}

.skill-box h3 {
    margin-bottom: 30px;
    font-size: 24px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-list span {
    padding: 12px 18px;
    background: #2b3070;
    border-radius: 10px;
    font-size: 14px;
    transition: .3s;
}

.skill-list span:hover {
    background: var(--blue);
    color: #111;
}

/* ===========================
   PROJECTS
=========================== */

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--card);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: .35s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.project-content p {
    color: var(--text);
    line-height: 30px;
    margin-bottom: 25px;
}

.project-content a {
    display: inline-block;
    text-decoration: none;
    color: var(--blue);
    font-weight: 600;
}

/* ===========================
   GLASS CARDS
=========================== */

.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.glass-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 16px 48px rgba(67, 181, 255, 0.2);
    border-color: rgba(67, 181, 255, 0.3);
}

.glass-card i {
    font-size: 40px;
    color: #43b5ff;
    margin-bottom: 15px;
    display: block;
}

.glass-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #fff;
}

.glass-card p {
    font-size: 14px;
    color: var(--text);
    margin: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card:nth-child(1) { animation-delay: 0.1s; }
.glass-card:nth-child(2) { animation-delay: 0.2s; }
.glass-card:nth-child(3) { animation-delay: 0.3s; }
.glass-card:nth-child(4) { animation-delay: 0.4s; }
.glass-card:nth-child(5) { animation-delay: 0.5s; }
.glass-card:nth-child(6) { animation-delay: 0.6s; }

.glass-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 50px 0;
}

@media (max-width: 768px) {
    .glass-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .glass-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   CONTACT
=========================== */

.contact-grid {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 40px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-card {
    background: var(--card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: .3s;
}

.contact-card:hover {
    background: var(--card2);
}

.contact-card i {
    font-size: 28px;
    color: var(--blue);
    margin-bottom: 15px;
}

.contact-card h3 {
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text);
}

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

input,
textarea,
select {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 18px;
    border-radius: 15px;
    color: var(--white);
    font-size: 15px;
    outline: none;
    transition: .3s;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--blue);
}

textarea {
    height: 180px;
    resize: none;
}

select option {
    background: var(--bg);
    color: var(--white);
}

/* ===========================
   FOOTER
=========================== */

footer {
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.footer {
    text-align: center;
}

.footer h2 {
    font-size: 34px;
    margin-bottom: 15px;
}

.footer p {
    color: var(--text);
    margin-bottom: 30px;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 30px;
}

.footer-social a {
    width: 48px;
    height: 48px;
    background: var(--card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--blue);
    transition: .3s;
}

.footer-social a:hover {
    background: var(--blue);
    color: #111;
}

.copy {
    opacity: .7;
    font-size: 14px;
}

/* ===========================
   RESPONSIVE
=========================== */

@media(max-width: 1100px) {
    .hero-grid,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .skills-grid {
        grid-template-columns: 1fr;
    }
    .image-card {
        height: 500px;
    }
}

@media(max-width: 768px) {
    .social {
        display: none;
    }
    .hero h1 {
        font-size: 48px;
    }
    .hero h2 {
        font-size: 24px;
    }
    .title h2 {
        font-size: 34px;
    }
    .project-grid {
        grid-template-columns: 1fr;
    }
    .numbers {
        gap: 25px;
        flex-wrap: wrap;
    }
    .image-card {
        height: 400px;
    }
    .container {
        width: 92%;
    }
    /* نمایش دکمه همبرگری در موبایل */
    .hamburger {
        display: flex;
    }
    .menu-nav {
        display: none !important;
    }
}

@media(max-width: 500px) {
    .hero {
        padding-top: 120px;
    }
    .hero h1 {
        font-size: 38px;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .btn,
    .btn-outline {
        width: 100%;
        text-align: center;
    }
    .mini-cards {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   ADDITIONAL UTILITIES
=========================== */

.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* ===========================
   CUSTOM SCROLLBAR
=========================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a8fd4;
}

/* ===========================
   DASHBOARD & ADMIN CARDS
=========================== */

.stat-card {
    background: var(--card);
    padding: 25px;
    border-radius: 18px;
    border: 1px solid var(--border);
    text-align: center;
    transition: .3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: var(--card2);
}

.stat-card h3 {
    font-size: 14px;
    color: var(--text);
    margin-bottom: 10px;
}

.stat-card .number {
    font-size: 36px;
    font-weight: 700;
    color: var(--blue);
}

/* ===========================
   TICKET & MESSAGE STYLES
=========================== */

.ticket-message {
    background: var(--card);
    padding: 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    margin: 8px 0;
}

.ticket-message.admin {
    background: var(--card2);
    border-left: 4px solid var(--blue);
}

.ticket-message.user {
    background: var(--card);
    border-left: 4px solid #51cf66;
}

.ticket-message .sender {
    font-size: 13px;
    color: var(--text);
    margin-bottom: 6px;
}

.ticket-message .time {
    font-size: 12px;
    color: var(--text);
    opacity: .7;
    float: right;
}

/* ===========================
   VIEW ALL PROJECTS BUTTON
=========================== */

.view-all-projects {
    text-align: center;
    margin-top: 40px;
}

.view-all-projects a {
    color: #43b5ff;
    font-size: 18px;
    text-decoration: none;
    border: 1px solid #43b5ff;
    padding: 12px 40px;
    border-radius: 30px;
    transition: .3s;
    display: inline-block;
}

.view-all-projects a:hover {
    background: #43b5ff;
    color: #111;
}