/* ==========================================================================
   1. CSS Variables & Theme Configuration (Light Mode by Default)
   ========================================================================== */
:root {
    /* Light Mode Palette (الافتراضي عند وجود class="light") */
    --bg-primary: #f8fafc;        /* خلفية الصفحة slate-50 */
    --bg-secondary: #ffffff;      /* الكروت والعناصر white */
    --bg-grey: #e5edf5;
    --bg-tertiary: #f1f5f9;       /* عناصر وخلفيات فرعية slate-100 */
    --bg-glass: rgba(255, 255, 255, 0.85); /* بطاقات زجاجية وواضحة */
    --border-color: rgba(226, 232, 240, 0.9); /* حدود ناعمة ومحددة */
    
    --text-primary: #0f172a;      /* نصوص داكنة وواضحة جداً slate-900 */
    --text-secondary: #475569;    /* نصوص فرعية slate-600 */
    --text-muted: #94a3b8;        /* نصوص ثانوية slate-400 */

    --brand-primary: #0284c7;    /* sky-600 */
    --brand-secondary: #4f46e5;  /* indigo-600 */
    --brand-accent: #0284c7;     
    
    --card-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05);
    --glow-shadow: 0 10px 30px rgba(2, 132, 199, 0.15);
}

html.dark {
    /* Dark Mode Palette (عند تفعيل الوضع الداكن فقط) */
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --bg-glass: rgba(15, 23, 42, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --bg-grey: #030617;
    
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;

    --brand-accent: #38bdf8;
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glow-shadow: 0 0 25px rgba(56, 189, 248, 0.2);
}
header {
    border-bottom: 1px solid var(--border-color)!important;
}
main {
    background-color: var(--bg-grey);
}
h1.text-4xl.sm\:text-6xl.font-extrabold.tracking-tight.mb-8.leading-tight, h2 {
    color: var(--text-primary);
}
.px-8.py-4.rounded-xl.font-semibold.dark\:bg-slate-900.border.dark\:border-slate-800.bg-white.border-slate-200.hover\:border-sky-500\/50.transition-all , h3, .font-medium{
color: var(--text-muted);
}

/* ==========================================================================
   2. Global Resets & Typography
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Tajawal', sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    cursor: none;
}

a, button, input, textarea, select, [role="button"] {
    cursor: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
}

/* ==========================================================================
   3. Glassmorphism & UI Components
   ========================================================================== */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    border-radius: 1.25rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    box-shadow: var(--glow-shadow);
    border-color: rgba(2, 132, 199, 0.3);
}

.gradient-text {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-bg {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.25);
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 132, 199, 0.35);
    opacity: 0.95;
}

.btn-secondary {
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--brand-primary);
}

/* ==========================================================================
   4. Interactive Elements & Portfolio Filter
   ========================================================================== */
.project-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
}

.filter-btn {
    transition: all 0.25s ease;
}

.filter-btn.active {
    background-color: var(--brand-primary) !important;
    color: #ffffff !important;
    border-color: var(--brand-primary) !important;
}

/* ==========================================================================
   5. Form Inputs Styling
   ========================================================================== */
input, textarea {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder, textarea::placeholder {
    color: var(--text-muted);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

section#services {
    margin-top: 20px;
}

/* ==========================================================================
   6. About Section
   ========================================================================== */
.about-section {
  padding: 155px 20px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  object-fit: cover;
  display: block;
  border: 1px solid var(--border-color);
}

.about-experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--brand-primary);
  color: #ffffff;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: var(--glow-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.badge-number {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.badge-text {
  font-size: 0.85rem;
  margin-top: 5px;
  opacity: 0.9;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.section-tagline {
  color: var(--brand-accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.2rem;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 800;
}

.section-description {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 35px;
  width: 100%;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.feature-icon {
  width: 32px;
  height: 32px;
  background-color: var(--bg-tertiary);
  color: var(--brand-accent);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  flex-shrink: 0;
}

.feature-text h4 {
  margin: 0 0 5px 0;
  color: var(--text-primary);
  font-size: 1.1rem;
}

.feature-text p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.about-btn {
  display: inline-block;
  background-color: var(--brand-primary);
  color: #ffffff;
  padding: 14px 32px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: var(--glow-shadow);
}

.about-btn:hover {
  background-color: var(--brand-secondary);
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-experience-badge {
    right: 10px;
    bottom: -15px;
    padding: 15px 20px;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* ==========================================================================
   7. Overlapping Stats Section
   ========================================================================== */
.stats-container {
  max-width: 1100px;
  margin: -60px auto 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
  direction: rtl;
}

.stats-wrapper {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 35px 25px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  box-shadow: var(--card-shadow);
}

.stat-card {
  text-align: center;
  position: relative;
}

.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-color);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 5px;
  line-height: 1;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 992px) {
  .stats-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 20px;
  }
  
  .stat-card:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 576px) {
  .stats-container {
    margin-top: -40px;
  }
  
  .stats-wrapper {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .stat-card::after {
    display: none !important;
  }
}

/* ==========================================================================
   8. Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 90vh;
  background-color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  direction: rtl;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 20px;
}

.hero-tagline {
  color: var(--brand-accent);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

.hero-title {
  color: var(--text-primary);
  font-size: 3rem;
  font-weight: 800;
  margin: 15px 0 20px 0;
  line-height: 1.25;
}

.hero-description {
  color: var(--text-secondary);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 35px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.1rem;
  }
}

/* ==========================================================================
   9. Testimonials Carousel
   ========================================================================== */
.testimonials-section {
  padding: 100px 20px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  overflow: hidden;
}

.testimonials-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px auto;
}

.carousel-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 25px;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.testimonial-card {
  min-width: calc(33.333% - 17px);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-primary);
  box-shadow: var(--glow-shadow);
}

.card-stars {
  color: #fbbf24;
  font-size: 1.1rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
  margin-bottom: 25px;
}

.client-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.client-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand-primary);
}

.client-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.client-role {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.nav-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}

#prevBtn { transform: rotate(0deg); }
#nextBtn { transform: rotate(180deg); }

.nav-btn:hover {
  background: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  box-shadow: var(--glow-shadow);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--brand-primary);
  width: 24px;
  border-radius: 10px;
}

@media (max-width: 992px) {
  .testimonial-card {
    min-width: calc(50% - 13px);
  }
}

@media (max-width: 640px) {
  .testimonial-card {
    min-width: 100%;
  }
}

/* ==========================================================================
   10. Custom Cursor
   ========================================================================== */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.cursor-outline {
  width: 36px;
  height: 36px;
  border: 2px solid var(--brand-accent);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  box-shadow: var(--glow-shadow);
  transition: width 0.2s, height 0.2s, border-color 0.2s, background-color 0.2s;
}

.cursor-hover .cursor-dot {
  width: 12px;
  height: 12px;
  background-color: var(--brand-primary);
}

.cursor-hover .cursor-outline {
  width: 55px;
  height: 55px;
  border-color: var(--brand-primary);
  background-color: rgba(2, 132, 199, 0.1);
}

@media (max-width: 1024px), (hover: none) {
  body, a, button, input, textarea, select {
    cursor: auto !important;
  }
  .cursor-dot, .cursor-outline {
    display: none !important;
  }
}

/* ==========================================================================
   11. Footer Section
   ========================================================================== */
.main-footer {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border-top: 1px solid var(--border-color);
  padding-top: 70px;
  direction: rtl;
  position: relative;
  z-index: 5;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 50px 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}

.footer-logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.footer-logo span span {
  color: var(--brand-primary);
}

.about-text {
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 25px;
  color: var(--text-secondary);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: bold;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background-color: var(--brand-primary);
  color: #ffffff;
  border-color: var(--brand-primary);
  transform: translateY(-3px);
  box-shadow: var(--glow-shadow);
}

.footer-title {
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 2px;
  background-color: var(--brand-primary);
  border-radius: 2px;
}

.footer-links, .footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--brand-accent);
  transform: translateX(-5px);
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.contact-icon {
  font-size: 1rem;
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
  padding: 20px 0;
}

.bottom-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.bottom-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

.bottom-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.bottom-links a:hover {
  color: var(--brand-accent);
}

@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .bottom-container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ==========================================================================
   12. Offer Section
   ========================================================================== */
.gratech-offering-section {
  position: relative;
  padding: 120px 20px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  overflow: hidden;
}

.watermark-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 13vw;
  font-weight: 900;
  color: var(--border-color);
  white-space: nowrap;
  pointer-events: none;
  z-index: 1;
  letter-spacing: 5px;
  opacity: 0.3;
}

.offering-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.offering-images-col {
  position: relative;
  height: 500px;
}

.offering-img-box {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
}

.offering-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-main {
  width: 75%;
  height: 400px;
  top: 0;
  right: 0;
}

.img-sub {
  width: 55%;
  height: 260px;
  bottom: 0;
  left: 0;
  border: 4px solid var(--bg-primary);
}

.offering-badge {
  position: absolute;
  top: 40%;
  right: -20px;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  padding: 15px 22px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--card-shadow);
}

.badge-icon {
  width: 40px;
  height: 40px;
  background: var(--brand-primary);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.badge-num {
  display: block;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--brand-primary);
}

.badge-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.section-tag-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-accent);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 20px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 35px;
}

.offering-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.offering-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.offering-item:hover, .offering-item.active {
  background: var(--bg-secondary);
  border-color: var(--brand-primary);
  transform: translateX(-5px);
  box-shadow: var(--card-shadow);
}

.item-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.item-icon {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-primary);
  background: var(--bg-tertiary);
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
}

.item-info h4 {
  margin: 0 0 4px 0;
  font-size: 1.1rem;
  color: var(--text-primary);
  font-weight: 700;
}

.item-info p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.item-arrow-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.offering-item:hover .item-arrow-btn {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
  transform: rotate(-45deg);
}

@media (max-width: 992px) {
  .offering-wrapper {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .offering-images-col {
    height: 420px;
  }
}

@media (max-width: 576px) {
  .img-main { width: 85%; height: 300px; }
  .img-sub { width: 60%; height: 200px; }
  .section-title { font-size: 1.8rem; }
  .offering-item { padding: 16px; }
}

/* ==========================================================================
   13. Project Details Page
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.logo span { color: var(--brand-primary); }

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--brand-accent);
}

.btn-contact {
  background-color: var(--brand-primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-contact:hover {
  background-color: var(--brand-secondary);
  box-shadow: var(--glow-shadow);
}

.project-banner {
  padding: 80px 20px 40px 20px;
  text-align: center;
  position: relative;
}

.banner-tag {
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: inline-block;
}

.banner-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--brand-accent); }

.project-details-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 100px 20px;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 40px;
}

.main-project-image {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--card-shadow);
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 40px;
}

.gallery-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: transform 0.3s, border-color 0.3s;
}

.gallery-grid img:hover {
  transform: translateY(-4px);
  border-color: var(--brand-primary);
}

.content-box {
  margin-bottom: 35px;
}

.content-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-primary);
  border-right: 3px solid var(--brand-primary);
  padding-right: 12px;
}

.content-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.05rem;
  margin-bottom: 15px;
}

.project-features-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 20px;
}

.project-features-list li {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  padding: 12px 18px;
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-features-list li::before {
  content: "✓";
  color: var(--brand-primary);
  font-weight: bold;
}

.project-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.meta-card {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--card-shadow);
}

.meta-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.meta-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.meta-label {
  color: var(--text-muted);
}

.meta-value {
  color: var(--text-primary);
  font-weight: 600;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.tech-tag {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--brand-primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
}

.btn-live {
  background-color: var(--brand-primary);
  color: #ffffff;
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
  box-shadow: var(--glow-shadow);
}

.btn-live:hover {
  background-color: var(--brand-secondary);
}

.btn-github {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  text-align: center;
  padding: 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-github:hover {
  background-color: var(--bg-secondary);
  border-color: var(--brand-primary);
}

@media (max-width: 992px) {
  .project-details-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .banner-title { font-size: 2rem; }
  .main-project-image { height: 300px; }
  .project-features-list { grid-template-columns: 1fr; }
}

