* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #09030e;
    --bg-light: #676769;
    --purple-main: #676769;
    --purple-light: #c3c3ce;
    --purple-dark: #414142;
    --text-white: #ffffff;
    --text-gray: #bbbbbb;
    --text-dark-gray: #888888;
    --primary-color: #09030e;
    --accent-color: #212122;
    
    --spacing-sm: 20px;
    --spacing-md: 40px;
    --spacing-lg: 60px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: var(--text-white);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.5;
}

/* Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5; /* خففت الشفافية قليلاً لتناسب اللون الأسود */
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #b4b1b1e8; /* أسود خالص */
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
    opacity: 0.4; /* شفافية منخفضة حتى لا يطغى على المحتوى */
    box-shadow: 0 0 4px rgba(0,0,0,0.3); /* ظل أسود ناعم */
    will-change: transform;
}

/* يمكنك أيضاً إضافة اختلاف بسيط في الحجم أو المدة لبعض الجسيمات */
.particle:nth-child(even) {
    width: 5px;
    height: 5px;
    animation-duration: 18s;
    opacity: 0.3;
}

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Main Layout */
.main-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 2;
}

.content-area {
    flex: 1;
    padding: 40px 40px 40px 40px;
    padding-right: 320px; /* space for sidebar */
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Content Cards */
.content-card {
    background: rgba(89, 89, 90, 0.3);
    border: 1px solid rgba(89, 87, 90, 0.3);
    border-color: rgba(100,100,100,0.3);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
    box-shadow: 0 0 30px rgba(86, 85, 87, 0.1);
    display: none;
    position: relative;
    backdrop-filter: blur(2px);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(209, 205, 212, 0.05) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover::before {
    opacity: 1;
}

.content-card.active {
    display: block;
}

.content-card:hover {
    border-color: rgba(150,150,150,0.6);
    box-shadow: 0 0 40px rgba(120,120,120,0.2);
}


.card-inner {
    padding: 40px;
}

.card-title {
    font-size: clamp(24px, 5vw, 32px);
    color: var(--purple-light);
    margin-bottom: 10px;
    text-align: center;
    font-weight: 600;
}

.card-title.glow-text {
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from { text-shadow: 0 0 5px #777, 0 0 10px #777; }
    to { text-shadow: 0 0 10px #aaa, 0 0 20px #aaa, 0 0 30px #ccc; }
}

.card-subtitle {
    font-size: clamp(14px, 3vw, 16px);
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 30px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    width: 55px;
    height: 55px;
    border-radius: 14px;
    background: var(--purple-main);
    border: none;
    color: white;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(79, 79, 80, 0.4);
    transition: all 0.35s ease;
    display: none;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle svg {
    width: 30px;
    height: 30px;
}

.mobile-menu-toggle:hover {
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 8px 25px rgba(196, 193, 199, 0.6);
}

.mobile-menu-toggle.active svg path {
    d: path("M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z");
}

/* Sidebar */
.sidebar {
    position: fixed;
    right: 0;
    top: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(211deg, #3e3e41, #000000);
    border-left: 1px solid rgba(217, 211, 223, 0.3);
    border-left-color: rgba(150,150,150,0.2);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
    transform: translateX(0);
}

.sidebar-profile {
    text-align: center;
    margin-bottom: 30px;
}

.sidebar-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--purple-main);
    overflow: hidden;
    margin: 0 auto 15px;
    box-shadow: 0 0 20px drgba(202, 200, 204, 0.5);
}

.sidebar-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-name {
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 5px;
    word-break: break-word;
}

.sidebar-title {
    font-size: 14px;
    color: var(--text-gray);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-link {
    display: block;
    padding: 12px 20px;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--purple-main);
    color: var(--text-white);
    box-shadow: 0 0 20px rgba(202, 200, 204, 0.5);
}

/* Profile Section */
.profile-container {
    position: relative;
    width: min(200px, 50vw);
    height: min(200px, 50vw);
    margin: 0 auto 20px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.profile-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid var(--purple-main);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(202, 200, 204, 0.5);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-size: clamp(24px, 8vw, 36px);
    text-align: center;
    margin-bottom: 10px;
}

.profile-name .highlight,
.highlight {
    color: var(--purple-main);
}

.profile-subtitle {
    font-size: clamp(16px, 4vw, 18px);
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 25px;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: rgba(208, 197, 218, 0.4);
    border-radius: 50%;
}

.shape-1 {
    width: 50px;
    height: 50px;
    top: -10px;
    right: -10px;
    animation: orbit1 6s linear infinite;
}

.shape-2 {
    width: 40px;
    height: 40px;
    bottom: -5px;
    left: -5px;
    animation: orbit2 7s linear infinite;
}

.shape-3 {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 50%;
    right: -20px;
    background: rgba(212, 191, 212, 0.4);
    border-radius: 50%;
    animation: orbit3 5s linear infinite;
}

@keyframes orbit1 {
    from { transform: rotate(0deg) translateX(40px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(40px) rotate(-360deg); }
}

@keyframes orbit2 {
    from { transform: rotate(0deg) translateX(-30px) rotate(0deg); }
    to { transform: rotate(360deg) translateX(-30px) rotate(-360deg); }
}

@keyframes orbit3 {
    from { transform: rotate(0deg) translateY(30px) rotate(0deg); }
    to { transform: rotate(360deg) translateY(30px) rotate(-360deg); }
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.social-links a {
    width: 45px;
    height: 45px;
    border: 2px solid var(--purple-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a svg {
    width: 20px;
    height: 20px;
}

.social-links a:hover {
    background: var(--purple-main);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(202, 200, 204, 0.5);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 35px;
    background: transparent;
    color: #a9a6a6;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
    border: 2px solid var(--purple-main);
    cursor: pointer;
    text-align: center;
    font-size: 1rem;
}

.btn:hover {
    background: var(--purple-main);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(88, 88, 88, 0.4);
}

/* Background decorative circles for sections */
#services .card-inner,
#skills .card-inner {
    position: relative;
    overflow: hidden;
}

#services .card-inner::before,
#services .card-inner::after,
#skills .card-inner::before,
#skills .card-inner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(204, 188, 219, 0.1);
    pointer-events: none;
    z-index: 0;
}

#services .card-inner::before,
#skills .card-inner::before {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

#services .card-inner::after,
#skills .card-inner::after {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

#services .skills-grid,
#skills .skills-grid {
    position: relative;
    z-index: 1;
}

/* About */
.about-text h3 {
    font-size: clamp(20px, 5vw, 24px);
    margin-bottom: 15px;
    color: var(--purple-main);
    text-align: center;
}

.about-text p {
    font-size: clamp(14px, 3vw, 16px);
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 15px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stats {
    display: flex;
    gap: var(--spacing-md);
    margin: var(--spacing-md) 0;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgb(0 0 0 / 10%);
    border-radius: 15px;
    border: 1px solid rgb(255 255 255 / 20%);
    border-color: rgba(255,255,255,0.1);
    transition: all 0.25s;
    min-width: 120px;
    flex: 1 1 auto;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(100,100,100,0.2);
    border-color: var(--purple-main);
    box-shadow: 0 10px 25px rgba(100,100,100,0.3);
}

.stat-number {
    font-size: clamp(24px, 6vw, 28px);
    font-weight: bold;
    color: var(--purple-main);
}

.stat-label {
    font-size: 13px;
    color: var(--text-dark-gray);
    margin-top: 5px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: var(--purple-main);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    background: rgba(30,30,30,0.9);
    border-color: rgba(150,150,150,0.3);
    border: 1px solid rgba(199, 181, 216, 0.3);
    border-radius: 10px;
    color: var(--text-white);
    font-size: 16px;
    transition: all 0.25s;
    width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple-main);
    box-shadow: 0 0 15px rgba(150,150,150,0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--purple-main), var(--purple-dark));
    border: none;
    border-radius: 12px;
    color: var(--text-white);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgb(241 238 244 / 40%)
}

.contact-form .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(98, 97, 99, 0.6);
}

#formStatus {
    margin-top: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeIn 0.5s ease-in-out;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.2);
}

#formStatus.success {
    background: rgba(214, 208, 219, 0.15);
    color: var(--purple-light);
    border: 1px solid var(--purple-light);
}

#formStatus.error {
    background: rgba(255, 212, 212, 0.15);
    color: #ff6b6b;
    border: 1px solid #ff6b6b;
}

#formStatus.loading {
    background: rgba(51, 50, 53, 0.5);
    color: var(--text-white);
    border: 1px solid rgba(207, 195, 219, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Discord Card */
.discord-card {
    display: flex;
    flex-direction: column;
    background: #111214;
    border-radius: 12px;
    width: 100%;
    max-width: 550px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(221, 213, 228, 0.3);
    margin: 30px auto;
    position: relative;
    border: 2px solid drgba(202, 200, 204, 0.5);
    transition: all 0.3s ease;
}

.discord-card:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(218, 208, 228, 0.4);
    border-color: rgba(87, 86, 88, 0.7);
}

.discord-banner-neon {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #66666b, #24262c);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(99, 93, 105, 0.3);
}

.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center;
}

.discord-card-body {
    padding: 12px;
    background: linear-gradient(180deg, rgba(80,80,80,0.5), rgba(20,20,20,0.8));
}

.discord-content-wrapper {
    display: flex;
    gap: 20px;
    flex-direction: column;
}

.discord-left-section {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 0;
    margin-top: -66px;
}

.discord-avatar-large {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: visible;
    position: relative;
    box-shadow: 0 0 15px rgb(51, 48, 56);
}

.discord-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.discord-status-large {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f23f43;
    border: 4px solid #111214;
}

.discord-status-large.online {
    background: #23a55a;
}

.discord-status-large.dnd {
    background: #f23f43;
}

.discord-status-large.idle {
    background: #f0b232;
}

.discord-status-large.offline {
    background: #80848e;
}

.discord-right-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.discord-username-large {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.lightning-icon {
    font-size: 24px;
    color: #4d464c;
}

.discord-username-large h2 {
    font-size: clamp(20px, 5vw, 28px);
    font-weight: 700;
    color: #fff;
    margin: 0;
    word-break: break-word;
}

.discord-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.discord-tag-large {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Courier New', monospace;
    font-weight: 500;
}

.discord-custom-tag-large {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 8px;
    border-radius: 10px;
    border: 1px solid rgba(200, 175, 224, 0.4);
    border-color: rgba(150,150,150,0.4);
    transition: all 0.2s ease;
}

.tag-text-large {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.discord-badges-inline {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.discord-badge-img {
    width: 26px;
    height: 26px;
    border-radius: 4px;
    object-fit: contain;
    transition: transform 0.2s;
    cursor: pointer;
}

.discord-badge-img:hover {
    transform: scale(1.15);
    filter: brightness(1.2);
}

.discord-section-large {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 8px;
    margin-top: 8px;
}

.discord-section-title-large {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.discord-section-content-large {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.discord-member-since-large {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #fff;
    flex-wrap: wrap;
}

.discord-member-since-large svg {
    width: 20px;
    height: 20px;
    fill: #6a6b77;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 40px;
    perspective: 1000px;
}

.service-card {
    position: relative;
    border-color: rgba(120,120,120,0.3);
    background: linear-gradient(135deg, rgba(70,70,70,0.4), rgba(20,20,20,0.8));
    border: 1px solid rgba(212, 194, 212, 0.3);
    border-radius: 16px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    will-change: transform;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at 30% 20%, rgba(112, 109, 116, 0.4), transparent 60%);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.03);
    border-color: #888;
    box-shadow: 0 20px 40px rgba(100,100,100,0.5);
    z-index: 10;
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 15px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.25);
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover .service-icon {
    transform: scale(1.08) rotate(2deg);
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-icon img {
    transform: scale(1.12);
}

.service-card h3 {
    font-size: 1.2rem;
    margin: 15px 0 0 0;
    color: #b9b0b9;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 24px;
    margin-top: 35px;
    perspective: 1000px;
}

.skill-card {
    position: relative;
    border-color: rgba(120,120,120,0.3);
    background: linear-gradient(135deg, rgba(60,60,60,0.5), rgba(10,10,10,0.8));
    border: 1px solid rgba(206, 182, 205, 0.3);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    will-change: transform;
}

.skill-card::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at 30% 20%, rgba(213, 195, 230, 0.4), transparent 60%);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
    z-index: 1;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #888;
    box-shadow: 0 20px 40px rgba(100,100,100,0.5);
    z-index: 10;
}

.skill-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.2) rotate(5deg);
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skill-card h3 {
    font-size: 16px;
    color: var(--text-white);
    margin: 0;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* Projects grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 35px;
    perspective: 1000px;
}

.project-card {
    position: relative;
    border-color: rgba(120,120,120,0.3);
    background: linear-gradient(61deg, rgb(26 25 25 / 50%), rgb(91 88 88 / 80%));
    border: 1px solid rgb(255 255 255 / 30%);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.5s ease;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    will-change: transform;
}

.project-card::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle at 30% 20%, rgba(141, 141, 141, 0.4), transparent 60%);
    opacity: 0;
    transition: opacity 0.6s;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    background: rgba(47, 46, 49, 0.8);
    border-color: #888;
    box-shadow: 0 20px 40px rgba(100,100,100,0.5);
    z-index: 10;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: transform 0.6s;
    position: relative;
    z-index: 2;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card h3 {
    position: relative;
    z-index: 2;
    color: #b5b5b8;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.project-card p {
    position: relative;
    z-index: 2;
    color: #bbbbbb;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Custom Cursor - only on devices with fine pointer */
@media (pointer: fine) {
    body {
        cursor: none;
    }

    .custom-cursor {
        position: fixed;
        width: 20px;
        height: 20px;
        background: rgba(150,150,150,0.3);
        border-color: #888;
        border: 2px solid #868686;
        border-radius: 50%;
        pointer-events: none;
        transform: translate(-50%, -50%);
        transition: width 0.3s, height 0.3s;
        z-index: 9999;
        box-shadow: 0 0 15px #555;
        animation: idleBreathe 2s ease-in-out infinite alternate;
        animation-play-state: running;
    }

    @keyframes idleBreathe {
        0% { transform: translate(-50%, -50%) scale(1); }
        100% { transform: translate(-50%, -50%) scale(1.1) translateY(5px); }
    }

    .custom-cursor.active {
        width: 40px;
        height: 40px;
        background: rgba(100, 98, 100, 0.4);
    }

    .trail {
        position: fixed;
        width: 6px;
        height: 6px;
        background: #aaa;
        border-radius: 50%;
        pointer-events: none;
        opacity: 0.8;
        transition: all 0.5s ease-out;
        z-index: 9998;
    }
}

/* Footer */
footer {
    background: linear-gradient(22deg, #29292b, #000000);
    padding: 30px 20px;
    text-align: center;
    border-top: 1px solid rgba(100, 98, 102, 0.2);
    position: relative;
    z-index: 2;
    margin-right: 280px;
}

/* Pulse effect on buttons */
.btn:hover {
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

.particle:nth-child(even) {
    background: var(--purple-light);
    box-shadow: 0 0 8px rgba(165,165,175,0.4);
    animation-duration: 18s;
    width: 5px;
    height: 5px;
}

/* Responsive Breakpoints */
@media (max-width: 1400px) {
    .content-area {
        max-width: 1200px;
        padding-right: 300px;
    }
}

@media (max-width: 1200px) {
    .content-area {
        max-width: 1000px;
        padding-right: 280px;
    }
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .content-area {
        padding: 30px 30px 30px 30px;
        padding-right: 30px;
    }
    
    .sidebar {
        transform: translateX(100%);
        width: 300px;
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    footer {
        margin-right: 0;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-area {
        padding: 20px 20px;
    }
    
    .card-inner {
        padding: 30px 20px;
    }
    
    .services-grid,
    .projects-grid,
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .stat-item {
        width: 100%;
        max-width: 250px;
    }
    
    .profile-container {
        width: 150px;
        height: 150px;
    }
    
    .discord-card {
        max-width: 100%;
        margin: 20px 0;
    }
    
    .discord-avatar-large {
        width: 80px;
        height: 80px;
    }
    
    .discord-status-large {
        width: 24px;
        height: 24px;
        border-width: 3px;
    }
    
    .discord-left-section {
        margin-top: -50px;
    }
}

@media (max-width: 576px) {
    .content-area {
        padding: 15px 15px;
        gap: 25px;
    }
    
    .card-inner {
        padding: 25px 15px;
    }
    
    .card-title {
        font-size: 24px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .discord-username-large h2 {
        font-size: 22px;
    }
    
    .discord-banner-neon {
        height: 100px;
    }
}

@media (max-width: 400px) {
    .content-area {
        padding: 10px 10px;
    }
    
    .card-inner {
        padding: 20px 12px;
    }
    
    .service-card,
    .project-card {
        padding: 18px 12px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .discord-badge-img {
        width: 22px;
        height: 22px;
    }
}

/* Remove tooltip pseudo-elements */
.service-card::after,
.project-card::after {
    display: none !important;
}

/* Improve touch targets on mobile */
@media (max-width: 768px) {
    .sidebar-link,
    .social-links a,
    .btn {
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    input, textarea, button {
        font-size: 16px; /* Prevent zoom on focus */
    }
}

/* Visitor Counter */
/* توحيد تصميم الزر والعداد */
.home-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 25px;
}

.btn-counter,
.visitor-counter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(30,30,30,0.6);
    padding: 0 25px;
    height: 44px;
    border-radius: 50px;
    border: 1px solid rgba(150,150,150,0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    color: #ccc;
    line-height: 1;
    min-height: unset;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

/* تأثير hover موحد */
.btn-counter:hover,
.visitor-counter:hover {
    border-color: var(--purple-main);
    box-shadow: 0 0 15px rgba(150,150,150,0.3);
    transform: translateY(-2px);
    background: rgba(30,30,30,0.8);
    color: #fff;
}

/* تنسيق خاص للعدد داخل العداد */
.counter-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--purple-main);
    background: rgba(0,0,0,0.3);
    padding: 2px 12px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.1);
    min-width: 36px;
    text-align: center;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
    line-height: 1.5;
}

/* Comments section (below views, separate block) */
.comments-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(150,150,150,0.2);
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.comments-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--purple-light);
    margin-bottom: 1rem;
    text-align: left;
}

.comments-list {
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(150,150,150,0.4) transparent;
}

.comments-list::-webkit-scrollbar {
    width: 8px;
}

.comments-list::-webkit-scrollbar-track {
    background: transparent;
}

.comments-list::-webkit-scrollbar-thumb {
    background: rgba(150,150,150,0.4);
    border-radius: 4px;
}

.comments-list::-webkit-scrollbar-thumb:hover {
    background: rgba(150,150,150,0.6);
}

.comments-list:empty::before {
    content: 'No comments yet. Be the first!';
    color: var(--text-dark-gray);
    font-size: 0.9rem;
}

.comment-item {
    background: rgba(30,30,30,0.5);
    border: 1px solid rgba(150,150,150,0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.comment-item .comment-author {
    font-weight: 600;
    color: var(--purple-light);
    margin-bottom: 0.25rem;
}

.comment-item .comment-content {
    color: var(--text-gray);
    white-space: pre-wrap;
    word-break: break-word;
}

.comment-item .comment-date {
    font-size: 0.75rem;
    color: var(--text-dark-gray);
    margin-top: 0.35rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.comment-form-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.comment-form input[type="text"],
.comment-form textarea {
    background: rgba(30,30,30,0.6);
    border: 1px solid rgba(150,150,150,0.3);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.comment-form input[type="text"] {
    flex: 1;
    max-width: 180px;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: var(--text-dark-gray);
}

.comment-form textarea {
    resize: vertical;
    min-height: 56px;
}

.comment-submit {
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.comments-status {
    font-size: 0.85rem;
    color: var(--text-dark-gray);
    margin-top: 0.25rem;
    min-height: 1.2em;
}

.comments-status.success { color: #86efac; }
.comments-status.error { color: #fca5a5; }

/* إزالة أي تنسيقات سابقة قد تسبب تعارض */
.btn.btn-counter {
    all: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(30,30,30,0.6);
    padding: 0 25px;
    height: 44px;
    border-radius: 50px;
    border: 1px solid rgba(150,150,150,0.3);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    color: #ccc;
    line-height: 1;
    min-height: unset;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}