body {
    /* Noto Sans بۆ کوردی و Roboto بۆ ئینگلیزی */
    font-family: 'Noto Sans Arabic', 'Roboto', 'Helvetica Neue', Arial, sans-serif !important;
    direction: rtl; /* دڵنیابە بۆ کوردی لای ڕاست بێت */
}

/* ئەگەر بەشێکی سایتەکەت ئینگلیزییە، دەتوانیت ئەم کڵاسە بەکاربهێنیت */
.en-text {
    direction: ltr;
    text-align: left;
}

section {
    padding-top: 100px;
    margin-bottom: 80px;
    min-height: 80vh;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    text-align: center;
}

/* ستایلی شوشەیی (Glassmorphism) */
.glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-links a {
    text-decoration: none;
    color: #333;
    margin-left: 25px;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}


/* ستایل بۆ ئەو لینکەی کە ئێستا لێیەتی */
.nav-links a.active {
    color: #888 !important; /* ڕەنگی ڕەساسی */
    transform: scale(0.85) !important;   /* کەمێک بچوکبوونەوە */
    opacity: 0.7;            /* کەمێک کاڵبوونەوە بۆ ئەوەی وا دیار بێت لە ناوەوەیە */
    transition: all 0.3s ease;
}

.menu-icon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.menu-icon span {
    width: 25px;
    height: 3px;
    background: #333;
    border-radius: 2px;
}

/* مێنووی تەنیشت */
.side-menu {
    position: fixed;
    top: 80px;
    right: -300px;
    width: 250px;
    padding: 20px;
    border-radius: 15px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-menu.active {
    right: 20px;
}

/* دوگمە بازنەییەکان */
.toggle-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-box {
    width: 50px;
    height: 25px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

.circle {
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px;
}

/* بەشی دەقەکان */
.hero {
    padding-top: 150px;
}

h1 {
    font-size: 2.5rem;
    color: #222;
    margin-bottom: 15px;
}

.blue-text {
    color: #007bff;
}

.subtitle {
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 30px;
}

.profile-img img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.cta-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
}

.cta-btn:hover {
    background: #0056b3;
    transform: translateY(-3px);
}

body.dark-theme {
    background: linear-gradient(135deg, #1a1c20 0%, #0f1012 100%);
    color: #ffffff;
}
body.dark-theme h1,
body.dark-theme .nav-links h4,
body.dark-theme .subtitle {
    color: #ffffff;
}

toggle-box.active {
    background: #007bff;
}
.toggle-box,active .circle {
    right: auto;
    left: 2px;
}
.side-menu {
    position: fixed;
    top: 80px;
    right: -300px;
    width: 250px;
    padding: 20px;
    border-radius: 15px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 9999; /* ئەم دێڕە گرنگە بۆ ئەوەی لەسەرەوە بێت */
}

body.darkitheme {
    background: #1a1a1a !important;
    color: wheat !important;
}

body.dark-theme .glass {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
/* ١. شێوەی دوگمەکە بە گشتی */
.toggle-box {
    width: 50px;
    height: 25px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease; /* بۆ ئەوەی گۆڕانی ڕەنگەکە نەرم بێت */
}

/* ٢. شێوەی بازنە سپییەکە */
.circle {
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    right: 2px; /* لە سەرەتادا لە لای ڕاستە */
    transition: all 0.5s ease; /* بۆ ئەوەی بە نەرمی بخلیسکێت */
}

/* ٣. کاتێک کلیک دەکرێت و کلاسەکە دەبێتە active (ئەمە ئەو بەشەیە کە لای تۆ ئیش ناکات) */
.toggle-box.active {
    background: #007bff; /* ڕەنگی دوگمەکە دەبێتە شین */
}

.toggle-box.active .circle {
    /* لێرەدا دەڵێین بازنەکە ٢٥ پdirection بەرەو لای چەپ بخلیسکێنە */
    transform: translateX(-25px); 
}
/* ١. گۆڕینی ڕەنگی نووسینەکانی مێنوو و سەرووە بۆ سپی */
body.dark-theme .nav-links a, 
body.dark-theme .hero h1, 
body.dark-theme .hero .subtitle,
body.dark-theme .toggle-container span {
    color: #ffffff !important;
}

/* ٢. گۆڕینی باکگراوندی مێنوو بۆ شوشەیی تاریک (Dark Glass) */
body.dark-theme .glass-header,
body.dark-theme .side-menu.glass {
    background: rgba(0, 0, 0, 0.5) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
}

/* ٣. گۆڕینی بازنەی دەوری وێنەکەت بۆ ڕەش */
body.dark-theme .profile-img img {
    border: 5px solid #1a1a1a !important; /* ڕەنگی ڕەشی دەوری وێنەکە */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

/* ٤. گۆڕینی سێ خەتەکەی مێنوو بۆ سپی */
body.dark-theme .menu-icon span {
    background: #ffffff !important;
}

/* ئەمە بەشە سەرەکییەکەیە کە وێنەکانی تێدایە */
.projects-grid {
    display: block; /* نەک گریدی ئاسایی */
    column-count: 3; /* دابەشکردنی بۆ ٣ ستون */
    column-gap: 15px; /* بۆشایی نێوان ستونەکان */
    padding: 15px;
}

/* ئەمە هەر کارتێکی وێنەیە */
.project-card {
    display: inline-block; /* زۆر گرنگە بۆ ئەوەی وێنەکە لە ناوەڕاستدا نەبڕێت */
    width: 100%;
    margin-bottom: 15px; /* بۆشایی بۆ وێنەکەی خوار خۆی */
    break-inside: avoid; /* گەرەنتی دەکات وێنەکە پارچە نابێت بۆ ستونی دواتر */
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* ئەمە خودی وێنەکەیە */
.project-card img {
    width: 100%;
    height: auto; /* لێرەدا وێنە درێژەکە بە درێژی و کورتەکە بە کورتی دەمێنێتەوە */
    display: block;
    object-fit: contain;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.project-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.6);
}

.project-card:hover {
    box-shadow: 0 10px 25px rgba(0, 170, 255, 0.3);
}

/* --- ستایلی چاککراوی Lightbox --- */
.lightbox {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* هەموو بەرزی شاشە دەگرێت */
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 999999 !important; /* نرخێکی زۆر بەرز بۆ ئەوەی بکەوێتە سەر هەموو شتێک، تەنانەت ناڤباریش */
    justify-content: center;
    align-items: center;
    flex-direction: column; /* وا دەکات دوگمە و وێنە یەک لەسەر یەک بن */
    padding: 20px;
}

.lightbox-content {
    max-width: 90%;
    max-height: 75vh; /* وێنەکە کەمێک بچووکتر دەکاتەوە تا جێگەی دوگمەکە بێتەوە */
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 170, 255, 0.4);
    margin-bottom: 20px; /* مەودایەک بۆ دوگمەی داگرتن */
}

/* ستایلی دوگمەی داخستن (X) */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 1000000; /* دڵنیایی کە هەمیشە لەسەرەوە دیارە */
}

/* ستایلی دوگمەی داگرتن */
.download-btn {
    padding: 12px 35px;
    background-color: #00aaff;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.download-btn:hover {
    background-color: #0088cc;
    transform: scale(1.05);
}

/* ئەگەر لە مۆبایلیش کێشەی هەبوو ئەمەی بۆ زیاد بکە */
@media (max-width: 600px) {
    .lightbox-content {
        max-height: 60vh;
    }
    .close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}

.about-section {
    padding: 100px 20px;
    background: transparent;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-color); /* دڵنیابە ئەم گۆڕاوەت پێشتر داناوە */
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards ease-out; /* جووڵەی نەرم لە کاتی لۆد بوون */
}

.about-text span {
    color: #00aaff; /* ڕەنگی شین بۆ ناوی خۆت */
    font-weight: bold;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(0, 170, 255, 0.3);
    transition: 0.4s;
    cursor: default;
}

.skill-item:hover {
    background: #00aaff;
    color: white;
    transform: scale(1.1) rotate(2deg); /* جووڵەی نەرم کاتێک ماوسی دەچێتە سەر */
}

/* ئەنیمەیشنی هاتنە ناوەوە */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-section {
    padding: 80px 20px;
    text-align: center;
    background: transparent;
}

.contact-section h2 {
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 30px;
}

.social-item {
    font-size: 2rem;
    color: var(--text-color);
    transition: 0.3s ease;
}

.social-item:hover {
    color: #00aaff; /* ڕەنگی شین */
    transform: translateY(-5px);
}

.phone-info {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #00aaff;
    font-weight: bold;
}
.social-icons {
    display: flex;
    justify-content: center;
    gap: 30px; /* بۆشایی نێوان ئایکۆنەکان */
    margin: 20px 0;
}

.social-item {
    font-size: 35px; /* گەورەیی ئایکۆنەکان */
    color: var(--text-color);
    transition: 0.3s;
}

.social-item:hover {
    color: #00aaff; /* ڕەنگی شین کاتێک ماوسی دەچێتە سەر */
    transform: translateY(-10px); /* کەمێک دەچێتە سەرەوە */
}

.phone-info {
    font-size: 22px;
    margin-top: 20px;
    color: #00aaff;
}

/* ئەمە باری ئاسایی بەشەکانە پێش ئەوەی دەرکەون */
.reveal {
    opacity: 0;
    transform: translateY(50px); /* ٥٠ پیکسڵ لە خوارەوەیە */
    transition: all 0.8s ease-out; /* جووڵەیەکی زۆر نەرم */
}

/* ئەمە کاتێکە کە دەگاتە سەر شاشەکە و جاڤاسکریپتەکە چالاکی دەکات */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}