/* ============================
   THEME VARIABLES
   Neon blue + gradient premium
   (cleaned / clarified)
=============================== */
:root{
  --bg-dark: #071022;
  --bg-mid: #0f1e33;
  --bg-accent: #07172b;
  --neon-1: #1f6feb;
  --neon-2: #60a5fa;
  --neon-3: #00d4ff;
  --muted: rgba(255,255,255,0.72);
  --glass: rgba(255,255,255,0.04);
  --glass-2: rgba(255,255,255,0.02);
  --white: #ffffff;
  --radius-lg: 14px;
  --radius-md: 10px;
  --max-width: 1600px;

  /* divider thickness & subtle color */
  --divider-width: 5px;
  --divider-color: rgba(255,255,255,0.02);

  --skills-gap: 25px;            /* horizontal gap between logos */
  --skills-side-padding: 30px;  /* left/right padding so center stays clear of buttons */

    --font-family-base: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* FONT SIZES */
  --font-h1: 2.5rem;       /* ~40px */
  --font-h2: 2rem;         /* ~32px */
  --font-h3: 1.5rem;       /* ~24px */
  --font-h4: 1.25rem;      /* ~20px */
  --font-body: 1rem;       /* 16px default */
  --font-small: 0.875rem;  /* 14px */
  --font-lead: 1.125rem;   /* ~18px */
  --font-kicker: 0.8125rem; /* ~13px */

  /* FONT WEIGHTS */
  --fw-light: 300;
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-bold: 700;
  --fw-extra-bold: 800;
}

/* APPLY TO WHOLE SITE */
body, h1, h2, h3, h4, h5, h6, p, a, li, span {
  font-family: var(--font-family);
  margin: 0;
  padding: 0;
  color: var(--white);
}

/* HEADINGS */
h1 { font-size: var(--font-h1); font-weight: var(--fw-bold); }
h2 { font-size: var(--font-h2); font-weight: var(--fw-extra-bold); }
h3 { font-size: var(--font-h3); font-weight: var(--fw-bold); }
h4 { font-size: var(--font-h4); font-weight: var(--fw-bold); }

/* BODY TEXT */
p { font-size: var(--font-body); font-weight: var(--fw-normal); line-height: 1.5; }
.lead { font-size: var(--font-lead); font-weight: var(--fw-medium); }
.kicker { font-size: var(--font-small); font-weight: var(--fw-bold); }

/* LINKS & BUTTONS */
a, .cta, .admin-btn, .card { font-family: var(--font-family); font-weight: var(--fw-medium); }

/* FOOTER */
.footer-about h2, .footer-links h3, .footer-contact h3 { font-family: var(--font-family); font-weight: var(--fw-bold); }
.footer-links ul li a, .footer-contact p, .footer-bottom { font-family: var(--font-family); font-weight: var(--fw-normal); font-size: var(--font-small); }

/* ============================
   BASE
=============================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100%;
}

html,body{height:100%}
body{
  font-family:"Poppins",system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial;
  background: linear-gradient(180deg,var(--bg-dark),var(--bg-mid));
  color:var(--white);
  font-size:16px;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  overflow-x:hidden;
  line-height:1.45;
  /* keep space below fixed navbar */
  padding-top: 110px;
}

/* central container helper */
.section-inner{width:100%;max-width:var(--max-width);margin:0 auto;padding-top: 30px;}

/* ============================
   BACKGROUND / BLOBS
=============================== */
.bg-grid{
  position:fixed;inset:0;
  background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity:0.18;z-index:-2;
}
.bg-blobs{position:fixed;inset:0;z-index:-3;pointer-events:none;overflow:hidden}
.blob{position:absolute;border-radius:50%;filter:blur(60px);opacity:0.85;mix-blend-mode:screen}
.blob-1{width:520px;height:520px;left:-8%;top:-6%;background:linear-gradient(135deg,var(--neon-1),var(--neon-2));transform:translateZ(0)}
.blob-2{width:360px;height:360px;right:-6%;top:8%;background:linear-gradient(135deg,var(--neon-2),var(--neon-3));opacity:0.6}
.blob-3{width:260px;height:260px;left:20%;bottom:-10%;background:linear-gradient(135deg,#2b6bff33,#00d4ff33);opacity:0.45}

/* subtle animated movement */
@keyframes floaty {
  0%{transform:translateY(0) rotate(0deg)}
  50%{transform:translateY(-18px) rotate(3deg)}
  100%{transform:translateY(0) rotate(0deg)}
}
.blob-1,.blob-2,.blob-3{animation:floaty 8s ease-in-out infinite}

/* ============================
   NAVBAR — ALWAYS VISIBLE
=============================== */
.navbar {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 9999;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 18px;
  width: 94%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 12px 18px;
  box-shadow: 0 6px 30px rgba(4,12,24,0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.photo-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  overflow: hidden;
  background: white;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.photo-fallback {
  display: none;
  color: #fff;
  font-weight: 700;
  padding: 6px;
}

.brand-title { font-weight: 700; }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* NAV LINKS */
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  position: relative;
  transition: color .18s ease, text-shadow .18s ease;
}

.nav-links a:hover { color: var(--white); text-shadow: 0 0 10px var(--neon-1); }

.nav-links a.active {
  color: var(--neon-1);
  text-shadow:
    0 0 6px rgba(10,102,194,0.9),
    0 0 18px rgba(0,212,255,0.12);
  font-weight:700;
}

.nav-links a.active::after{
  content: "";
  position: absolute;
  left: -6px; right: -6px;
  top: -6px; bottom: -6px;
  border-radius: 8px;
  background: radial-gradient(ellipse at center, rgba(10,102,194,0.08), transparent 40%);
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  transition: opacity .18s ease;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 18px;
}

/* ============================
   SECTIONS / HERO
=============================== */
.section, .hero {
  padding: 65px 0;
  border-top: var(--divider-width) solid var(--divider-color);
  border-bottom: var(--divider-width) solid var(--divider-color);
}

.hero .section-inner {
  display: flex;
  gap: 77px;
  align-items: center;
  justify-content: center;
}

.hero-wrap {
  display: flex;
  gap: 36px;
  align-items: center;
}

.hero-card {
  flex: 1;
  max-width: 1000px;
  padding: 65px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 8px 30px rgba(2,8,20,0.6);
}

.kicker {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(31,111,235,0.12), rgba(96,165,250,0.08));
  color: var(--neon-1);
  margin-bottom: 12px;
}

.hero-card h1 {
  margin-bottom: 12px;
  line-height: 1.12;
}

.hero-card .lead {
  color: var(--muted);
  margin-bottom: 18px;
}

/* CTAs */
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--neon-1), var(--neon-2));
  color: var(--white);
  padding: 10px 18px;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 30px rgba(31,111,235,0.12);
  transition: transform .18s ease, box-shadow .18s ease;
}

.cta.small {
  padding: 8px 12px;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(31,111,235,0.18);
}

.ghost {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--muted);
  text-decoration: none;
}

/* info pills */
.info-row {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.info-pill {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
  min-width: 150px;
}

.info-pill strong {
  display: block;
  margin-bottom: 6px;
}

.info-pill span {
  color: var(--muted);
}

/* SIDE CARD */
.side-card {
  width: 420px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.45);
  text-align: center;
}

.photo-round {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
}

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

.side-packages {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pkg {
  background: var(--glass);
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.03);
}

/* ============================
   GRID & CARDS
=============================== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 6px 18px rgba(3,8,20,0.45);
  transition: transform .28s, box-shadow .28s;
}

.card h4 {
  margin-bottom: 8px;
}

.card p {
  color: var(--muted);
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--neon-1), var(--neon-2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 12px;
}

.thumb {
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--glass-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* ====================================================================== */

/* HEADINGS */
.about-text h3 {
  font-weight: 600;         /* make it slightly bolder */
  margin-bottom: 20px;      /* space below heading */
  color: #b2b7be;           /* subtle dark for emphasis */
}

/* LEAD PARAGRAPH */
.about-text p.lead {
  margin-bottom: 20px;      /* spacing after paragraph */
}

/* NORMAL PARAGRAPH */
.about-text p {
  margin-bottom: 20px;      /* spacing between paragraphs */
}

/* BULLET LIST */
.about-text ul {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.about-text ul li {
  margin-bottom: 10px;      /* spacing between items */
  line-height: 1.6;
}

/* EMPHASIS / MOTTO */
.about-text em {
  display: block;
  text-align: center;
  margin-top: 20px;
}

/* ============================
   PORTFOLIO GRID
=============================== */
.portfolio-grid figure {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portfolio-grid figcaption {
  color: var(--muted);
}

/* ============================
   ABOUT GRID
=============================== */

.contact-card {
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
}

/* ============================
   FOOTER
=============================== */
.site-footer { 
  background: #071022; 
  color: #fff; 
  padding: 60px 20px 20px 20px; 
}

.footer-container { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 40px; 
  max-width: 1200px; 
  margin: auto; 
  justify-content: space-between; 
}

.footer-logo {
  display: flex;           
  flex-direction: column;  
  justify-content: center; 
  align-items: center;     
  text-align: center;      
}

.footer-about, .footer-links, .footer-contact { 
  flex: 1 1 250px;   
  display: flex;           
  flex-direction: column;  
  justify-content: center; 
  align-items: center;     
  text-align: center;      
}

.footer-about h2 { 
  color: #1f6feb; 
  margin-bottom: 10px; 
}

.footer-links h3, .footer-contact h3 { 
  color: #60a5fa; 
  margin-bottom: 10px; 
}

.footer-links ul { 
  list-style: none; 
  padding: 0; 
}

.footer-links ul li { 
  margin: 8px 0; 
}

.footer-links ul li a { 
  color: #fff; 
  text-decoration: none; 
  transition: 0.3s; 
}

.footer-links ul li a:hover { 
  color: #00d4ff; 
}

.footer-contact p { 
  margin: 8px 0; 
}

.footer-contact a { 
  color: #1f6feb; 
  text-decoration: none; 
  transition: 0.3s; 
}

.footer-contact a:hover { 
  color: #00d4ff; 
}

.social-icons { 
  margin-top: 10px; 
}

.social-icons a { 
  display: inline-block; 
  margin-right: 10px; 
  transition: 0.3s; 
}

.social-icons a:hover { 
  color: #00d4ff; 
  transform: scale(1.2); 
}

.footer-bottom { 
  text-align: center; 
  border-top: 1px solid rgba(255,255,255,0.1); 
  margin-top: 40px; 
  padding-top: 20px; 
  color: #888; 
}

/* ============================
   REVEAL ANIMATION
=============================== */
.reveal{opacity:0;transform:translateY(40px);filter:blur(6px);transition:all .8s cubic-bezier(.2,.9,.3,1)}
.revealed{opacity:1;transform:none;filter:none}

/* reveal1: gentle lift + slight scale + subtle rotation with blur */
.reveal1 {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(5px);
  transition: all .7s ease-out;
}

.reveal1.revealed {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* reveal2: slide-in from left with skew + blur */
.reveal2{/* initial hidden state */opacity:0;transform:translateX(-30px) skewX(-4deg);filter:blur(10px);transition:all 1s cubic-bezier(.3,.9,.4,1.2)}
.reveal2.revealed{opacity:1;transform:none;filter:none}

/* reveal3: deeper vertical rise with soft rotation + heavier blur */
.reveal3{/* initial hidden state */opacity:0;transform:translateY(40px) rotate(2deg);filter:blur(12px);transition:all 1.1s cubic-bezier(.2,.9,.3,1)}
.reveal3.revealed{opacity:1;transform:none;filter:none}

/* reveal4: long-distance slide from far left */
.reveal4{/* initial hidden state */opacity:0;transform:translateX(-120px) skewX(-2deg);filter:blur(14px);transition:all 1.15s cubic-bezier(.25,.9,.25,1.1)}
.reveal4.revealed{opacity:1;transform:none;filter:none}

/* reveal5: long-distance slide from right to left */
.reveal5{/* initial hidden state */opacity:0;transform:translateX(120px) skewX(2deg);filter:blur(14px);transition:all 1.15s cubic-bezier(.25,.9,.25,1.1)}
.reveal5.revealed{opacity:1;transform:none;filter:none}

/* small helpers */
.lead{color:var(--muted);font-size:15px}
.kicker{letter-spacing:.2px}

/* Section Layout */
.about-section {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}

/* Photo Wrapper for Creative Effects */
.about-photo-wrap {
  position: relative;
  display: inline-block;
}

.about-photo {
  width: 100%;
  max-width: 100%;
  border-radius: 24px;
  transform: rotate(-2.5deg);
  box-shadow: 0 20px 45px rgba(0,0,0,.15);
  transition: transform .7s ease, box-shadow .7s ease;
}

.about-photo-wrap:hover .about-photo {
  transform: rotate(0) scale(1.03);
  box-shadow: 0 30px 60px rgba(0,0,0,.22);
}

/* Floating accent behind the photo */
.photo-accent {
  content: "";
  position: absolute;
  top: 16px;
  left: 16px;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffce7a, #ff8b4a);
  z-index: -1;
  filter: blur(18px);
  opacity: .35;
  transform: rotate(4deg);
}

/* ============================
   CAROUSEL CONTAINER
=============================== */
.carousel {
  width: 100%;
  max-width: var(--max-width);
  margin: 100px auto;
  overflow: hidden;
  position: relative;
  padding: 20px var(--skills-side-padding);
  display: flex;
  gap: var(--skills-gap);
  flex-wrap: nowrap; /* keep items in a row */
}

/* Hide scrollbar */
.carousel::-webkit-scrollbar {
  display: none;
}

/* ============================
   GROUP OF CARDS
=============================== */
.group {
  display: flex;
  align-items: center;
  gap: var(--skills-gap);

  /* Make sure the group width is bigger than carousel */
  min-width: max-content;
  flex-shrink: 0;

  /* Keep your existing animation */
  animation: scrollSkills 35s linear infinite;
}

/* Pause on hover */
.carousel:hover .group {
  animation-play-state: paused;
}

/* ============================
   CARDS
=============================== */
.card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;

  background: var(--bg-accent);
  color: var(--white);
  white-space: nowrap;

  border-radius: var(--radius-md);
  flex-shrink: 0; /* prevents cards from stacking vertically */

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Icon style */
.card i {
  color: var(--neon-2);
}

/* Hover effect */
.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(96,165,250,0.4),
    0 15px 40px rgba(31,111,235,0.35);
}

/* ============================
   INFINITE SCROLL ANIMATION
=============================== */
@keyframes scrollSkills {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); } /* <- scroll half the group width for continuous loop */
}

.btn-cv {
  display: inline-block; /* important for centering */
  padding: 12px 25px;
  background-color: #1e90ff; /* customize color */
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-cv:hover {
  background-color: #0073e6;
  transform: translateY(-2px);
}

/* Videos Grid Layout */
.videos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}

.video-card {
  width: 500px;        /* fixed width */
  height: 450px;       /* fixed height */
  background: transparent;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.video-player {
  width: 100%;         /* fills card width */
  height: 250px;       /* fixed height for video */
  border-radius: 8px;
  margin-bottom: 0.8rem;
  object-fit: cover;    /* keeps video proportioned, crops if needed */
}

.video-card p {
  font-size: 0.95rem;
  flex-grow: 1;
}

/* ============================
   ACCESSIBILITY FOCUS
=============================== */
a:focus,
button:focus {
  outline: 3px solid rgba(96,165,250,0.18);
  outline-offset: 3px;
}

/* ============================
   SERVICES SECTION
============================ */
.services-text {
  text-align: center;
  margin-bottom: 50px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

/* Service Cards */
.service-card {
  background: var(--bg-mid);
  border-radius: 16px;
  padding: 25px 20px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 25px rgba(0,0,0,0.35);
}

.service-icon {
  font-size: 2.5rem;
  color: #1f6feb;
  margin-bottom: 15px;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card ul li {
  margin-bottom: 10px;
  line-height: 1.5;
  color: #ccc;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .service-card {
    padding: 20px 15px;
  }

  .service-icon {
    font-size: 2rem;
  }
}

/* ============================
   PORTFOLIO TEXT & GRID
=============================== */

.portfolio-text h2 {
  text-transform: uppercase; /* optional */
  margin: 0;
  color: #ffffff;
}

.portfolio-text p {
  line-height: 1.5;
  color: #ffffff;
  margin: 0;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  padding: 20px 20px;
  gap: 20px;
}

.cell {
  position: relative;
  height: 200px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
}

.cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .5s ease;
}

.desc {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  color: white;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity .5s ease;
}

.cell:hover img {
  opacity: 0;
}

.cell:hover .desc {
  opacity: 1;
}

@keyframes fadeInText {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

.desc p {
  animation: fadeInText 1s ease forwards;
}

/* ============================
   REVIEWS / TESTIMONIALS
============================ */
.reviews-section {
  padding: 80px 20px;
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-mid));
  border-top: var(--divider-width) solid var(--divider-color);
  border-bottom: var(--divider-width) solid var(--divider-color);
}

.reviews-section .section-title {
  font-size: var(--font-h2);
  font-weight: var(--fw-extra-bold);
  text-align: center;
  margin-bottom: 50px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.review-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border: 1px solid rgba(255,255,255,0.03);
  box-shadow: 0 8px 25px rgba(2,8,20,0.6);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(31,111,235,0.35);
}

.review-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 15px;
  overflow: hidden;
  border: 2px solid var(--neon-2);
  box-shadow: 0 0 15px var(--neon-2);
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-name {
  font-size: var(--font-h4);
  font-weight: var(--fw-bold);
  color: var(--white);
  margin-bottom: 8px;
}

.review-rating {
  color: #ffd700; /* gold stars */
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.review-text {
  font-size: var(--font-body);
  font-weight: var(--fw-normal);
  line-height: 1.5;
  color: var(--muted);
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .reviews-section {
    padding: 50px 15px;
  }

  .review-card {
    padding: 20px 15px;
  }
}

/* ============================
   CONTACT MODAL (CENTER FLOATING)
=============================== */
#contactModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  visibility: hidden;
  pointer-events: none; /* disable interactions when hidden */

  transition: opacity .32s ease, visibility .32s;
  z-index: 99999;
}

#contactModal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#contactModal .modal-content {
  background: linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0.10));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  border-radius: 18px;
  padding: 28px;
  width: 92%;
  max-width: 460px;
  transform: translateY(25px);
  opacity: 0;
  transition: opacity .34s ease, transform .34s ease;
  position: relative;
  z-index: 100000;
  pointer-events: auto;
}

#contactModal.active .modal-content {
  transform: translateY(0);
  opacity: 1;
}

#contactModal .close-btn {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--neon-1);
  cursor: pointer;
  transition: color .2s ease;
}

#contactModal .close-btn:hover {
  color: var(--neon-2);
}

.contact-icons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 15px;
}

/* ============================
   ICON CARD
=============================== */
.modal-social-card {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 12px;
  background: var(--bg-light);
  border: 1px solid var(--neon-1);
  text-decoration: none;
  color: var(--neon-1);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.modal-social-card:hover {
  transform: translateY(-3px) scale(1.07);
  background: var(--neon-1);
  color: #fff;
}

/* ============================
   ADMIN TASK PORTFOLIO
=============================== */
#portfolio-admin {
  padding: 120px 20px;
  position: relative;
}

.portfolio section {
  width: 100%;
  max-width: 1100px;
  margin: auto;
  text-align: center;
  border: 2px solid white;
}

/* MAIN CARD */
.admin-card {
  display: flex;
  gap: 40px;
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 15px rgba(0, 110, 255, 0.3),
    0 0 35px rgba(0, 110, 255, 0.2) inset;
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Creative holo-glow border animation */
.admin-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, transparent 0%, var(--neon-blue) 40%, transparent 80%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  animation: holoGlow 4s linear infinite;
}

@keyframes holoGlow {
  0% { opacity: 0.2; transform: rotate(0deg); }
  50% { opacity: 0.8; }
  100% { transform: rotate(360deg); }
}

/* Image */
.admin-image-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-image-wrapper img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 110, 255, 0.25);
  transition: 0.3s ease;
}

.admin-image-wrapper img:hover {
  transform: scale(1.03);
}

/* Content */
.admin-content {
  flex: 1;
  text-align: left;
}

.admin-desc {
  color: #dfe8ff;
  line-height: 1.7;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Button */
.admin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--neon-blue);
  color: #000;
  padding: 12px 22px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 0 20px var(--neon-blue);
  transition: 0.25s ease;
}

.admin-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 0 35px var(--neon-blue);
}

/* Portfolio Modal */
.modal-img-viewer {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 99999;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.modal-img-viewer img.modal-img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 16px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.45);
  animation: zoomIn .35s ease;
}

.close-img {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  cursor: pointer;
}

@keyframes zoomIn {
  from { transform: scale(.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* make portfolio cards clickable */
.portfolio-grid .card {
  cursor: pointer;
}

.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  cursor: pointer;
  padding: 10px 20px;
  user-select: none;
}

.nav-arrow.prev {
  left: 30px;
}

.nav-arrow.next {
  right: 30px;
}

.nav-arrow:hover {
  color: #ddd;
}

/* NAV ACTIVE + CLICK ANIMATION */
.nav-item {
  position: relative;
  padding: 6px 0;
  display: inline-block;
  transition: color .3s ease, transform .25s ease;
}

.nav-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: var(--neon-3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
  border-radius: 4px;
}

.nav-item:hover::after {
  transform: scaleX(1);
}

.nav-item.active {
  transform: scale(1.05);
}

.nav-item.active::after {
  transform: scaleX(1);
}

.nav-item.clicked {
  animation: navClick .25s ease;
}

@keyframes navClick {
  0% { transform: scale(1); }
  40% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Certifications Grid */
.certifications-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 30px;
  padding: 20px;
  justify-content: center; /* Center the cards */
}

.cert-card {
  flex: 1 1 250px;
  max-width: 250px; /* Ensure uniform size */
  background: #ffffff;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer; /* Indicate clickable */
}

.cert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.cert-card img {
  width: 100%;
  height: 150px; /* Uniform thumbnail height */
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.cert-title {
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.cert-desc {
  font-size: 0.85rem;
  color: #555;
}

/* Modal Styles */
.cert-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.cert-modal-content {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
}

#caption {
  text-align: center;
  color: #fff;
  padding: 10px 0;
  font-size: 1rem;
}

.cert-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* ============================
   MOBILE (max-width: 600px)
============================ */
@media (max-width: 600px) {

  body {
    padding-top: 90px;
  }

  /* NAVBAR */
  .navbar {
    width: 95%;
    padding: 10px 14px;
  }

  .brand-title {
    font-size: 14px;
  }

  .brand-sub {
    font-size: 11px;
  }

  /* HERO */
  .hero .section-inner {
    flex-direction: column;
    gap: 30px;
  }

  .hero-card {
    padding: 25px;
  }

  .hero-card h1 {
    font-size: 20px;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .cta, .ghost {
    width: 100%;
    justify-content: center;
  }

  /* SIDE CARD */
  .side-card {
    width: 100%;
  }

  .photo-round {
    width: 160px;
    height: 160px;
  }

  /* GRID */
  .grid {
    grid-template-columns: 1fr;
  }

  /* PORTFOLIO */
  .portfolio-text {
    padding: 0 20px;
    text-align: center;
    align-items: center;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* ABOUT */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about-photo {
    max-width: 100%;
  }

  /* ADMIN CARD */
  .admin-card {
    flex-direction: column;
    padding: 25px;
  }

  /* CAROUSEL */
  .carousel {
    padding: 10px 10px;
  }

  .card {
    padding: 10px 16px;
  }

  /* FOOTER */
  .footer-container {
    gap: 20px;
  }
}

/* ============================
   MOBILE NAV (HAMBURGER)
============================ */
@media (max-width: 768px){

  .nav-toggle {
    display: block;
    cursor: pointer;
    font-size: 22px;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 220px;

    flex-direction: column;
    align-items: flex-start;
    gap: 12px;

    padding: 20px;
    border-radius: 14px;

    background: rgba(7,16,34,0.95);
    backdrop-filter: blur(10px);

    border: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);

    transition: right 0.3s ease;
  }

  .nav-links.open {
    right: 20px;
  }

  .nav-links a {
    width: 100%;
    padding: 10px 12px;
  }
}

/* ============================
   TABLET (max-width: 1024px)
============================ */
@media (max-width: 1024px) {

  body {
    padding-top: 100px;
  }

  /* HERO */
  .hero .section-inner {
    flex-direction: column;
    gap: 50px;
  }

  .hero-card {
    padding: 40px;
  }

  .hero-card h1 {
    font-size: 28px;
  }

  /* SIDE CARD */
  .side-card {
    width: 100%;
    max-width: 500px;
  }

  /* GRID */
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* PORTFOLIO */
  .portfolio-text {
    padding: 0 60px;
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ABOUT */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* ADMIN CARD */
  .admin-card {
    flex-direction: column;
    gap: 25px;
  }

  /* NAV */
  .nav-links {
    top: 80px;
  }
}

/* ===== FINAL MOBILE OVERFLOW FIX ===== */

/* Prevent any accidental overflow */
html, body {
  overflow-x: hidden;
}

/* Make sure sections don’t exceed screen */
section {
  width: 100%;
}

/* Extra safety for flex items */
.hero-wrap,
.hero .section-inner,
.admin-card {
  max-width: 100%;
}