/* ===== PROJECT HERO SECTION STYLES ===== */

:root {
  --primary-red: #c55656;
  --dark-red: #c62828;
  --black: #0a0a0a;
  --dark-gray: #1a1a1a;
  --medium-gray: #2a2a2a;
  --light-gray: #404040;
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --border-color: #333333;
  --teal: #06b6d4;
}

/* ─── HERO SECTION ─────────────── */
.project-hero-section {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.breadcrumb-nav {
  position: absolute;
  top: 120px;
  left: 180px;
  font-size: 14px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
  padding: 10px 0;
  user-select: none;
  z-index: 100;
}

.breadcrumb-nav:hover        { color: var(--primary-red); }
.breadcrumb-nav i            { font-size: 16px; transition: transform 0.3s ease; }
.breadcrumb-nav:hover i      { transform: translateX(-4px); }

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 40px 0;
}

/* ─── LEFT CONTENT ────────── */
.hero-content {
  z-index: 2;
  animation: slideInLeft 0.8s ease;
}

.project-category {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(20, 184, 166, 0.15) !important;
  border: 1px solid rgba(20, 184, 166, 0.4);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal) !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 30px;
  animation: fadeIn 0.8s ease 0.2s backwards;
}

.project-category i { font-size: 10px; }

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 25px;
  color: var(--text-primary);
  letter-spacing: -1px;
  animation: slideInLeft 0.8s ease 0.1s backwards;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-red), #ff6b6b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  animation: slideInLeft 0.8s ease 0.2s backwards;
}

/* ─── PROJECT META ──────────── */
.project-meta {
  display: flex;
  gap: 30px;
  margin-bottom: 50px;
  flex-wrap: wrap;
  animation: slideInLeft 0.8s ease 0.3s backwards;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--dark-gray);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.meta-item:hover {
  border-color: var(--primary-red);
  background: rgba(239, 68, 68, 0.1);
  transform: translateY(-2px);
}

.meta-item i { font-size: 18px; color: var(--primary-red); }
.meta-text   { font-size: 14px; }

.meta-label {
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}

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

/* ─── CTA BUTTON ──────────────── */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.5px;
  animation: slideInLeft 0.8s ease 0.4s backwards;
}

.cta-button:hover  { background: var(--dark-red); transform: translateY(-3px); }
.cta-button:active { transform: translateY(-1px); }
.cta-button i      { font-size: 14px; transition: transform 0.3s ease; }
.cta-button:hover i { transform: translateX(3px) translateY(-3px); }

/* ─── RIGHT VISUAL ────────────── */
.hero-visual {
  position: relative;
  animation: slideInRight 0.8s ease;
}

.dashboard-mockup { position: relative; }

.dashboard-main {
  position: relative;
  min-height: 410px;     
  margin-top: 3rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
  animation: float 3s ease-in-out infinite;
}

.dashboard-main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("image.png");
  background-size: cover;
  background-position: center;
  filter: blur(2px) brightness(0.4);
  z-index: 0;
}

.dashboard-main img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  width: 100%;
  padding: 13px;
  display: block;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

#mainDisplay {
  transition: opacity 0.3s ease-in-out;
  opacity: 1;
  width: auto;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
}

/* ─── SECONDARY MOCKUPS  ───── */
.secondary-mockups {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 16px;
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}

.secondary-mockups::-webkit-scrollbar { display: none; }

.secondary-mockup {
  flex: 0 0 auto;
  width: 150px;            
  height: 100px;
  background: var(--dark-gray);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.25s ease;
  cursor: pointer;
}

.secondary-mockup.active {
  border-color: var(--primary-red);
  box-shadow: 0 0 12px rgba(197, 86, 86, 0.45);
}

.secondary-mockup:hover {
  border-color: var(--primary-red);
}

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

.mockup-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--medium-gray), var(--light-gray));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.2);
}

/* ─── DECORATIVE ─────────────────── */
.hero-decoration {
  position: absolute;
  border-radius: 50%;
  opacity: 0.05;
  pointer-events: none;
}

/* ─── SECTION HEADER ─────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 80px;
  animation: fadeInUp 0.8s ease;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.4);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 25px;
  animation: fadeInUp 0.8s ease 0.1s backwards;
}

.section-label i { font-size: 10px; }

.section-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.section-description {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.3s backwards;
}

/* ─── CONTAINER ──────────────────── */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── TECHNOLOGIES SECTION (3-col) ──────────*/
.technologies-section { padding: 100px 0; }

.technologies-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1000px;
  margin: 0 auto;
  background: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.tech-badge-item {
  background: #111111;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tech-icon {
  width: 50px;
  height: 50px;
  border-radius: 9px;
  margin-bottom: 15px;
  object-fit: contain;
}

.tech-badge-item span {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
}

/* ─── RESULTS SECTION ────────────────── */
.results-section { padding: 120px 0; }

.results-container {
  max-width: 1000px;
  margin: 0 auto;
}

.results-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
}

.result-item {
  padding: 60px 40px;
  background: #111111;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
}

.result-text {
  font-size: 18px;
  color: #cbc7c7;
  line-height: 1.6;
  font-weight: 400;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

/* ─── CTA SECTION ───────────────── */
.cta-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-content {
  max-width: 700px;
  margin: 0 auto;
  animation: fadeInUp 0.8s ease;
}

.cta-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.5px;
  animation: fadeInUp 0.8s ease 0.1s backwards;
}

.cta-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 50px;
  line-height: 1.6;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.cta-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 48px;
  background: var(--primary-red);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.5px;
  animation: fadeInUp 0.8s ease 0.3s backwards;
}

.cta-primary-btn:hover  { background: var(--dark-red); transform: translateY(-3px); }
.cta-primary-btn:active { transform: translateY(-1px); }
.cta-primary-btn svg    { width: 20px; height: 20px; transition: transform 0.3s ease; }
.cta-primary-btn:hover svg { transform: translateX(4px); }

/* ─── NEXT PROJECT SECTION ────────────── */
.next-project-section { padding: 120px 0; }

.project-wrapper-link {
  text-decoration: none;
  display: block;
}

.next-project-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 0 40px;
}

.project-info {
  flex: 1;
  transition: transform 0.4s ease;
}

.next-label {
  color: #bfb9b9;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
  font-weight: 600;
  display: block;
}

.project-title {
  color: #fff;
  line-height: 1;
  font-size: clamp(2rem, 4vw, 4rem) !important;
  letter-spacing: -2px;
  font-weight: 900 !important;
  text-transform: uppercase;
  margin: 0;
  transition: color 0.3s ease;
}

.project-preview { flex: 1; }

.preview-card {
  padding: 20px;
  border-radius: 20px;
  width: 100%;
  max-width: 670px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}

.preview-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

/* ─── TECHNOLOGIES SECTION 2 (2-col) ───────── */
.technologies-section2 { padding: 100px 0; }

.technologies-grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  max-width: 1000px;
  margin: 0 auto;
  background: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.tech-badge-item2 {
  background: #111111;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  cursor: pointer;
}

.tech-icon2 {
  width: 50px;
  height: 50px;
  border-radius: 9px;
  margin-bottom: 15px;
  object-fit: contain;
}

.tech-badge-item2 span {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  display: block;
  text-align: center;
}

/* ─── TECHNOLOGIES SECTION 3 (3-col) ─────────── */
.technologies-section3 { padding: 100px 0; }

.technologies-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  max-width: 1000px;
  margin: 0 auto;
  background: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

.tech-badge-item3 {
  background: #111111;
  padding: 50px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  cursor: pointer;
}

.tech-icon3 {
  width: 50px;
  height: 50px;
  border-radius: 9px;
  margin-bottom: 15px;
  object-fit: contain;
}

.tech-badge-item3 span {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  display: block;
  text-align: center;
}

/* ─── ANIMATIONS ────────────────────── */
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes rotate {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==================================
   RESPONSIVE BREAKPOINTS
   ================================== */

/* ─── 1024px ────────────────────── */
@media (max-width: 1024px) {
  .container                { padding: 0 30px; }
  .project-hero-section     { min-height: auto; padding: 60px 0; }
  .hero-container           { grid-template-columns: 1fr; gap: 50px; padding: 0 30px; }
  .hero-title               { font-size: 48px; }
  .section-title            { font-size: 42px; }
  .dashboard-main           { min-height: 350px; }
  .technologies-section,
  .results-section          { padding: 100px 0; }
  .secondary-mockup         { width: 110px; height: 72px; }
}

/* ─── 768px ───────────────────────── */
@media (max-width: 768px) {
  .breadcrumb-nav            { top: 20px; left: 0; padding: 0 20px; font-size: 12px; }
  .hero-container            { padding: 40px 20px 0; gap: 40px; }
  .hero-title                { font-size: 36px; margin-bottom: 20px; }
  .hero-description          { font-size: 15px; margin-bottom: 30px; }
  .project-meta              { gap: 15px; margin-bottom: 40px; }
  .meta-item                 { padding: 10px 16px; font-size: 13px; }
  .cta-button                { padding: 14px 32px; font-size: 14px; margin-top: 6px; }
  .dashboard-main            { min-height: 300px; }
  .secondary-mockup          { width: 90px; height: 60px; }
  .section-title             { font-size: 32px; }
  .section-description       { font-size: 15px; }
  .section-header            { margin-bottom: 60px; }
  .technologies-section,
  .results-section           { padding: 80px 0; }
  .tech-badge-item           { padding: 10px 24px; }
  .tech-badge-item span      { font-size: 14px; }
  .results-container         { padding: 50px 30px; }
  .result-text               { font-size: 15px; }
  .cta-section               { padding: 80px 0; }
  .cta-title                 { font-size: 36px; }
  .cta-description           { font-size: 16px; margin-bottom: 40px; }
  .cta-primary-btn           { padding: 14px 40px; font-size: 15px; }
  .next-project-container    { flex-direction: column; text-align: center; gap: 40px; }
  .project-title             { font-size: 3rem !important; }
  .preview-card              { max-width: 100%; }

  /* tech grid: 3-col → 2-col */
  .technologies-grid  { grid-template-columns: repeat(2, 1fr); }
  .technologies-grid3 { grid-template-columns: repeat(2, 1fr); }

  /* results: 1-col on mobile */
  .results-list { grid-template-columns: 1fr; }
}

/* ─── 480px ─────────────────────── */
@media (max-width: 480px) {
  .hero-title                { font-size: 28px; margin-bottom: 15px; }
  .hero-description          { font-size: 14px; margin-bottom: 25px; }
  .project-meta              { flex-direction: column; gap: 12px; margin-bottom: 35px; }
  .meta-item                 { width: 100%; padding: 12px 16px; }
  .project-category          { margin-bottom: 20px; }
  .dashboard-main            { min-height: 200px; }
  .secondary-mockup          { width: 62px; height: 42px; border-radius: 5px; }
  .section-title             { font-size: 24px; }
  .section-description       { font-size: 14px; }
  .section-header            { margin-bottom: 50px; }
  .technologies-section,
  .results-section           { padding: 60px 0; }
  .tech-badge-item      { padding: 10px 20px; }
  .tech-badge-item span { font-size: 13px; }
  .results-container         { padding: 40px 20px; border-radius: 12px; }
  .result-text               { font-size: 14px; }
  .cta-section               { padding: 60px 0; }
  .cta-title                 { font-size: 28px; margin-bottom: 15px; }
  .cta-description           { font-size: 15px; margin-bottom: 35px; }
  .cta-primary-btn           { padding: 13px 32px; font-size: 14px; border-radius: 20px; }
  .cta-primary-btn svg       { width: 18px; height: 18px; }

  /* tech: all → 1-col */
  .technologies-grid                                                 { grid-template-columns: 1fr; }

  .technologies-grid2 { grid-template-columns: 1fr; }
  .technologies-grid3 { grid-template-columns: 1fr; }
}

/* ─── ACCESSIBILITY ────────────────────*/
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─── HIGH CONTRAST ─────────────────────*/
@media (prefers-contrast: more) {
  .meta-item,
  .dashboard-main,
  .secondary-mockup  { border-width: 2px; }

  .project-category,
  .section-label      { border-width: 2px; }
}

.custom-list {
  list-style: none;
  padding-left: 0;
}

.custom-list li::before {
  content: "✓ ";
  color:white;
  font-weight:bolder;
  padding-right: 5px;
}