/* ==========================================
   PORTFOLIO CSS - Mfano Africa ICT Hub
   ========================================== */

/* ── ROOT VARIABLES ── */
:root {
  --navy: #0a0f1e;
  --navy2: #0f172a;
  --navy3: #1e293b;
  --cyan: #06b6d4;
  --cyan2: #22d3ee;
  --gold: #06b6d4;
  --white: #f8fafc;
  --gray: #94a3b8;
  --card-bg: rgba(30, 41, 59, 0.7);
  --deep-tech-blue: #0a1929;
  --solar-orange: #06b6d4;
  --light-bg: #0a1929;
  --text-dark: #cbd5e1;
  --text-light: #cbd5e1;
  --text-heading: #ffffff;
}

/* ── RESET ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: var(--navy2);
}
::-webkit-scrollbar-thumb {
  background: var(--cyan);
  border-radius: 2px;
}

/* ── WRAPPER GRID ── */
.wrapper {
  --min-col-size: 350px;
  max-inline-size: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: grid;
  gap: 1.2rem;
  margin-block-start: 2rem;
  grid-template-columns: repeat(
    auto-fit,
    minmax(min(var(--min-col-size), 100%), 1fr)
  );
}

/* ── BRAND MARK ── */
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, #12233a 0%, #0a1929 74%);
  border: 1.8px solid #22d3ee;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(34, 211, 238, 0.22),
    0 6px 18px rgba(0, 0, 0, 0.34);
}

.brand-mark-text {
  color: #22d3ee;
  font-size: 0.86rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  line-height: 1;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 3.5rem;
  padding: 8rem 5% 4rem;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── GLOWING ORBS ── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15), transparent 70%);
  top: -100px;
  right: -100px;
  animation: orb-float 8s ease-in-out infinite;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1), transparent 70%);
  bottom: 50px;
  left: -50px;
  animation: orb-float 10s ease-in-out infinite reverse;
}

@keyframes orb-float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, -30px);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  animation: fade-up 0.8s ease both;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

h1 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: fade-up 0.8s 0.1s ease both;
}

h1 .accent {
  color: var(--cyan);
}
h1 .gold {
  color: var(--gold);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fade-up 0.8s 0.2s ease both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fade-up 0.8s 0.3s ease both;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--cyan);
  color: var(--navy);
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 4px 30px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
  background: var(--cyan2);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(6, 182, 212, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  padding: 0.9rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.25s;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.hero-graphic {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
  align-self: center;
  animation: fade-up 0.8s 0.2s ease both;
}

.hero-photo-card {
  background: var(--card-bg);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 24px;
  padding: 1rem;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.hero-photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), transparent 62%);
  pointer-events: none;
}

.hero-photo {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
  position: relative;
  z-index: 1;
}

.hero-photo-caption {
  position: relative;
  z-index: 1;
  margin-top: 0.95rem;
  font-size: 0.84rem;
  line-height: 1.6;
  color: #dbe6f4;
}

.hero-photo-caption a {
  color: var(--cyan2);
  text-decoration: none;
}

.hero-photo-caption a:hover {
  color: var(--white);
}

/* ── SECTION COMMONS ── */
section {
  padding: 5rem 5%;
}

body > section:first-of-type:not(#hero) {
  margin-top: 88px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.section-label::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

.section-title {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-sub {
  color: var(--gray);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 560px;
}

/* ── ABOUT ── */
#about {
  background: var(--navy2);
  position: relative;
  overflow: hidden;
}

#about::after {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.06), transparent 70%);
  pointer-events: none;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-img-frame {
  background: var(--card-bg);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(20px);
}

.mission-vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.mv-card {
  padding: 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
}

.mv-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
}

.mv-card.mission::before {
  background: var(--cyan);
}
.mv-card.vision::before {
  background: var(--gold);
}
.mv-card.values::before {
  background: #a855f7;
}
.mv-card.goal::before {
  background: #22c55e;
}

.mv-icon {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}
.mv-title {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.mv-text {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.feat-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.1);
  transition:
    border-color 0.2s,
    background 0.2s;
}

.feat-item:hover {
  background: rgba(6, 182, 212, 0.08);
  border-color: rgba(6, 182, 212, 0.25);
}

.feat-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: rgba(6, 182, 212, 0.15);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.feat-content strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.feat-content span {
  font-size: 0.82rem;
  color: var(--gray);
}

/* ── SERVICES ── */
#services {
  background: var(--navy);
}

.services-header {
  max-width: 600px;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  transition: all 0.3s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.25);
}
.service-card:hover::before {
  transform: scaleX(1);
}

.sc-1::before {
  background: var(--cyan);
}
.sc-2::before {
  background: var(--gold);
}
.sc-3::before {
  background: #a855f7;
}
.sc-4::before {
  background: #22c55e;
}
.sc-5::before {
  background: #ef4444;
}
.sc-6::before {
  background: #f97316;
}
.sc-7::before {
  background: #ec4899;
}
.sc-8::before {
  background: #06b6d4;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ── COURSES ── */
#courses {
  background: var(--navy2);
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.course-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.3);
}

.course-banner {
  height: 8px;
}

.course-body {
  padding: 1.5rem;
}

.course-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  margin-bottom: 0.8rem;
}

.course-card h3 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.course-card p {
  font-size: 0.84rem;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.course-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--gray);
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
  background: rgba(6, 182, 212, 0.05);
  border-top: 1px solid rgba(6, 182, 212, 0.1);
}

.course-price {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}

.course-price .free {
  color: #4ade80;
}

.enroll-btn {
  background: var(--cyan);
  color: var(--navy);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.45rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s;
}

.enroll-btn:hover {
  background: var(--cyan2);
  transform: translateY(-1px);
}

/* ── WHY CHOOSE US ── */
#why {
  background: var(--navy);
  position: relative;
}

.why-grid {
  display: block;
  margin-top: 3rem;
}

.why-reasons {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 1.2rem;
  max-width: 980px;
  margin: 0 auto;
}

.why-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  height: 100%;
  padding: 1.5rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.25s;
}

.why-item:hover {
  background: rgba(6, 182, 212, 0.06);
  border-color: rgba(6, 182, 212, 0.2);
  transform: translateY(-3px);
}

.why-num {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(6, 182, 212, 0.2);
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
  transition: color 0.25s;
}

.why-item:hover .why-num {
  color: var(--cyan);
}

.why-content h4 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

.why-content p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
}

.stats-display {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.big-stat {
  background: var(--card-bg);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.big-stat:hover {
  border-color: rgba(6, 182, 212, 0.35);
  transform: translateY(-3px);
}

.big-stat::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--cyan2));
}

.big-stat:nth-child(2)::before {
  background: linear-gradient(90deg, var(--gold), #67e8f9);
}
.big-stat:nth-child(3)::before {
  background: linear-gradient(90deg, #a855f7, #c084fc);
}
.big-stat:nth-child(4)::before {
  background: linear-gradient(90deg, #22c55e, #4ade80);
}

.big-num {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  display: block;
  color: var(--white);
}

.big-num .plus {
  color: var(--cyan);
}
.big-stat:nth-child(2) .plus {
  color: var(--gold);
}
.big-stat:nth-child(3) .plus {
  color: #a855f7;
}
.big-stat:nth-child(4) .plus {
  color: #22c55e;
}

.big-stat p {
  font-size: 0.82rem;
  color: var(--gray);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── PORTFOLIO GRID ── */
#portfolio {
  background: var(--navy2);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.portfolio-item {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--card-bg);
  transition: all 0.3s;
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.3);
}

.pi-preview {
  height: 160px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
}

.pi-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(10, 15, 30, 0.5));
}

.pi-body {
  padding: 1.2rem;
}

.pi-type {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

.pi-body h4 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.pi-body p {
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.5;
}

.pi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.pi-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.6rem;
  border-radius: 100px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

/* ── TESTIMONIALS ── */
#testimonials {
  background: var(--navy);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 380px));
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: center;
  justify-content: center;
}

.testi-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.8rem;
  transition: all 0.3s;
  width: 100%;
  max-width: 380px;
}

.testi-card:hover {
  border-color: rgba(6, 182, 212, 0.2);
  transform: translateY(-3px);
}

.quote-icon {
  color: var(--cyan);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.testi-text {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testi-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.testi-name {
  font-weight: 600;
  font-size: 0.88rem;
}
.testi-role {
  font-size: 0.78rem;
  color: var(--gray);
}

.stars {
  color: var(--gold);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

/* ── BLOG ── */
#blog {
  background: var(--navy2);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.blog-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.25);
}

.blog-banner {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  position: relative;
  overflow: hidden;
}

.blog-body {
  padding: 1.3rem;
}

.blog-cat {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.blog-body h3 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.blog-body p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.6;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
  color: var(--gray);
}

.read-more {
  color: var(--cyan);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.8rem;
}

/* ── CONTACT ── */
#contact {
  background: var(--navy);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  margin-top: 3rem;
  align-items: start;
}

.contact-info h3 {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.contact-info p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(6, 182, 212, 0.05);
  border: 1px solid rgba(6, 182, 212, 0.1);
  border-radius: 12px;
}

.ci-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: rgba(6, 182, 212, 0.15);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.ci-label {
  font-size: 0.75rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ci-value {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 0.8rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  place-items: center;
  color: var(--white);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.social-btn:hover {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

/* ── CONTACT FORM ── */
.contact-form-wrap {
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
}

.form-title {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  color: var(--white);
  font-family: "Manrope", sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.05);
}

.form-group select option {
  background: var(--navy2);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-submit {
  width: 100%;
  background: var(--cyan);
  color: var(--navy);
  border: none;
  border-radius: 10px;
  padding: 1rem;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.form-submit:hover {
  background: var(--cyan2);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.4);
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 9rem 5% 3rem;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.96),
    rgba(10, 15, 30, 0.94)
  );
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.page-hero p {
  color: var(--gray);
  line-height: 1.7;
  max-width: 640px;
}

/* ==========================================
   PORTFOLIO PAGE SPECIFIC STYLES
   ========================================== */

body.portfolio-page {
  background: var(--light-bg);
  color: var(--text-dark);
  font-family: "Manrope", sans-serif;
}

body.portfolio-page {
  background:
    linear-gradient(
      rgba(6, 15, 28, 0.58),
      rgba(10, 20, 35, 0.62)
    ),
    url("../Images/internship2.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  color: #fff;
}

body.portfolio-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top right,
      rgba(6, 182, 212, 0.14),
      transparent 38%),
    radial-gradient(circle at bottom left,
      rgba(255, 193, 7, 0.12),
      transparent 42%);
  pointer-events: none;
  z-index: -1;
}

/* ── PORTFOLIO HERO ── */
.portfolio-hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 72vh;
  padding: 50px 20px 90px;
  overflow: hidden;
}

.portfolio-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(6, 182, 212, 0.12) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(34, 211, 238, 0.08) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.portfolio-hero-content {
  position: relative;
  width: min(1150px, 95%);
  margin: 0 auto;
  padding: 55px 45px;
  text-align: center;
  background: rgba(15, 23, 42, 0.70);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 2px solid rgba(46, 250, 250, 0.863);
  border-radius: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out;
}

.portfolio-hero-content::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  top: -140px;
  right: -140px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.18);
  filter: blur(70px);
  z-index: 0;
}

.portfolio-hero-content::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  bottom: -120px;
  left: -120px;
  border-radius: 50%;
  background: rgba(255, 193, 7, 0.12);
  filter: blur(70px);
  z-index: 0;
}

.portfolio-hero-content > * {
  position: relative;
  z-index: 2;
}

.portfolio-badge {
  display: inline-block;
  padding: 10px 22px;
  margin-bottom: 25px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #06b6d4;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.portfolio-hero-content h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
}

.portfolio-hero-content .subtitle {
  display: block;
  margin-top: 15px;
  color: #06b6d4;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 600;
}

.portfolio-hero-content p {
  max-width: 700px;
  margin: 30px auto 40px;
  color: #d1d5db;
  font-size: 1.1rem;
  line-height: 1.8;
}

.portfolio-cta {
  display: inline-block;
  padding: 14px 32px;
  background: var(--solar-orange);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  min-width: 200px;
  text-align: center;
}

.portfolio-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(6, 182, 212, 0.28);
}

/* ── PORTFOLIO SECTION ── */
.portfolio-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* ── PROJECT CARD ── */
.project-card {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  opacity: 0;
  animation: slideUp 0.6s ease-out forwards;
}

.project-card[data-index="0"] { animation-delay: 0.1s; }
.project-card[data-index="1"] { animation-delay: 0.2s; }
.project-card[data-index="2"] { animation-delay: 0.3s; }
.project-card[data-index="3"] { animation-delay: 0.1s; }
.project-card[data-index="4"] { animation-delay: 0.2s; }
.project-card[data-index="5"] { animation-delay: 0.3s; }

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-image-wrapper {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 1rem;
  background: rgba(6, 182, 212, 0.1);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image {
  transform: scale(1.02);
}

.project-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a3a5c, #0f2a45);
  color: #06b6d4;
  font-size: 3rem;
}

.project-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #06b6d4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.project-description {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.explore-project-btn {
  width: 100%;
  padding: 0.8rem 1.2rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, #06b6d4, #0891b2);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  transition: 0.3s ease;
}

.explore-project-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0891b2, #0e7490);
  box-shadow: 0 8px 30px rgba(6, 182, 212, 0.35);
}

.explore-project-btn:active {
  transform: translateY(0);
}

/* ── NO PROJECTS ── */
.no-projects {
  text-align: center;
  color: #94a3b8;
  padding: 4rem 2rem;
  grid-column: 1 / -1;
}

.no-projects .empty-icon {
  font-size: 4rem;
  color: #06b6d4;
  opacity: 0.3;
  margin-bottom: 1.5rem;
  display: block;
}

.no-projects h3 {
  color: #fff;
  margin-bottom: 1rem;
}

.no-projects p {
  max-width: 500px;
  margin: 0 auto;
}

/* ── MODAL STYLES ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  border-radius: 24px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
  color: #1e293b;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #1e293b;
  z-index: 10;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  transform: rotate(90deg);
  color: #06b6d4;
}

.modal-header {
  padding: 40px 40px 30px;
}

.modal-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.modal-cohort {
  font-size: 0.95rem;
  color: #06b6d4;
  font-weight: 600;
}

.modal-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #1a1a1a;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-images {
  display: flex;
  transition: transform 0.3s ease;
}

.carousel-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  flex-shrink: 0;
  min-width: 100%;
}

.carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: white;
  width: 24px;
  border-radius: 4px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--deep-tech-blue);
  transition: all 0.3s ease;
  z-index: 5;
}

.carousel-arrow:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.carousel-arrow.prev {
  left: 16px;
}
.carousel-arrow.next {
  right: 16px;
}

/* ── YOUTUBE THUMBNAIL ── */
.youtube-thumbnail-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px 0;
}

.youtube-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.play-button {
  position: absolute;
  width: 80px;
  height: 80px;
  background: var(--solar-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.youtube-thumbnail-container:hover .play-button {
  background: #ff7f1a;
  transform: scale(1.1);
}

.play-icon {
  width: 0;
  height: 0;
  border-left: 30px solid white;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  margin-left: 6px;
}

/* ── MODAL BODY ── */
.modal-body {
  padding: 40px;
}

.modal-section {
  margin-bottom: 32px;
}

.modal-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.modal-section-content {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
}

.project-subsection {
  padding: 16px;
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.08) 0%,
    rgba(6, 182, 212, 0.04) 100%
  );
  border-left: 3px solid var(--solar-orange);
  border-radius: 8px;
  margin-bottom: 16px;
}

.subsection-title {
  font-weight: 700;
  color: #06b6d4;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.subsection-text {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

/* ── CONTRIBUTORS ── */
.contributors-section {
  margin: 24px 0;
}

.contributors-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.contributor-card {
  text-align: center;
  padding: 12px;
}

.contributor-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto 8px;
  background: #06b6d4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.contributor-avatar:hover {
  background: #ff8a33;
  transform: scale(1.1);
}

.contributor-name {
  font-weight: 600;
  font-size: 0.85rem;
  color: #1e293b;
  margin-bottom: 2px;
}

.contributor-role {
  font-size: 0.75rem;
  color: #64748b;
}

/* ── ACTION BUTTONS ── */
.action-buttons {
  display: flex;
  justify-content: center;
  margin: 24px 0;
  gap: 16px;
}

.action-btn {
  width: min(100%, 360px);
  padding: 14px 20px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-family: "Manrope", sans-serif;
}

.action-btn.secondary {
  border: 2px solid var(--solar-orange);
  background: var(--solar-orange);
  color: #0a1929;
  transition: all 0.3s ease;
}

.action-btn.secondary:hover {
  background: var(--solar-orange);
  color: #ffffff;
}

.video-placeholder {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border-radius: 12px;
  text-align: center;
  margin: 20px 0;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

.modal-btn {
  flex: 1;
  padding: 12px 20px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  background: transparent;
  cursor: not-allowed;
  color: #94a3b8;
  font-weight: 600;
  transition: all 0.3s ease;
}

.related-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.related-card {
  background: #1a3a5c;
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.related-card h4 {
  font-size: 0.9rem;
  color: #e2e8f0;
  margin-bottom: 6px;
}

.related-card p {
  font-size: 0.8rem;
  color: #94a3b8;
}

/* ── ANIMATIONS ── */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── MOBILE MENU ── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  color: var(--white);
  font-size: 1.4rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  #hero {
    grid-template-columns: 1fr;
  }
  .hero-graphic {
    width: min(100%, 560px);
    max-width: 560px;
    justify-self: center;
    margin-top: 1rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .why-reasons {
    grid-template-columns: 1fr;
  }
  .stats-display {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
  }
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .stats-display {
    grid-template-columns: 1fr;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .hero-photo-card {
    padding: 0.85rem;
    border-radius: 20px;
  }
  
  .portfolio-hero {
    padding: 60px 20px 50px;
  }
  .portfolio-hero-content {
    padding: 40px 25px;
    border-radius: 20px;
  }
  .portfolio-hero-content h1 {
    font-size: 2.2rem;
  }
  .portfolio-hero-content .subtitle {
    font-size: 1.2rem;
  }
  .portfolio-hero-content p {
    font-size: 1rem;
  }
  
  .wrapper {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .modal-content {
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    margin-top: auto;
  }
}

@media (max-width: 480px) {
  .portfolio-hero {
    padding: 40px 15px 40px;
  }
  .portfolio-hero-content {
    padding: 30px 20px;
  }
  .portfolio-hero-content h1 {
    font-size: 1.8rem;
  }
  .portfolio-cta {
    min-width: 150px;
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}
/* Add these styles to CSS/Portfolio.css */

/* Hero Card - matching testimonials style */
.hero-card {
    position: relative;
    max-width: 1150px;
    margin: 0 auto;
    padding: 55px 45px;
    text-align: center;
    background: rgba(15, 23, 42, 0.70);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 2px solid rgba(46, 250, 250, 0.863);
    border-radius: 28px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    top: -130px;
    right: -130px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.18);
    filter: blur(70px);
    z-index: 0;
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    bottom: -120px;
    left: -120px;
    border-radius: 50%;
    background: rgba(255, 193, 7, 0.12);
    filter: blur(70px);
    z-index: 0;
}

.hero-card > * {
    position: relative;
    z-index: 2;
}

.hero-card .section-title {
    margin: 18px 0;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.15;
    color: #ffffff;
}

.hero-card .section-sub {
    max-width: 680px;
    margin: 0 auto;
    color: #d1d5db;
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-card .section-label {
    display: inline-block;
    padding: 10px 22px;
    margin-bottom: 20px;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.35);
    color: #06b6d4;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-title {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.section-sub {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 560px;
}

.text-center { text-align: center; }
.m-auto { margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; }

/* Project Cards */
.wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto 0;
    padding: 0 1.5rem;
}

.project-card {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 1rem;
    background: rgba(6, 182, 212, 0.1);
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.02);
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a3a5c, #0f2a45);
    color: #06b6d4;
    font-size: 3rem;
}

.project-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #06b6d4;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-description {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(6, 182, 212, 0.15);
    color: #06b6d4;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.explore-project-btn {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    transition: 0.3s ease;
    margin-top: 0.5rem;
}

.explore-project-btn:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #0891b2, #0e7490);
    box-shadow: 0 8px 30px rgba(6, 182, 212, 0.35);
}

.portfolio-cta {
    display: inline-block;
    padding: 14px 32px;
    background: #06b6d4;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    min-width: 200px;
    text-align: center;
    margin-top: 1rem;
}

.portfolio-cta:hover {
    transform: translateY(-2px);
    background: #0891b2;
    box-shadow: 0 12px 32px rgba(6, 182, 212, 0.28);
}

.no-projects {
    text-align: center;
    color: #94a3b8;
    padding: 4rem 2rem;
    grid-column: 1 / -1;
}

.no-projects .empty-icon {
    font-size: 4rem;
    color: #06b6d4;
    opacity: 0.3;
    margin-bottom: 1.5rem;
    display: block;
}

.no-projects h3 {
    color: #fff;
    margin-bottom: 1rem;
}

.no-projects p {
    max-width: 500px;
    margin: 0 auto;
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .wrapper {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    .hero-card {
        padding: 40px 25px;
        border-radius: 18px;
    }
    .hero-card .section-title {
        font-size: 2rem;
    }
    .hero-card .section-sub {
        font-size: 1rem;
    }
}