/* ================= GLOBAL ================= */
:root {
  --bg-900: #0a0a0b;
  --bg-800: #101214;
  --muted: #a2a9b3;
  --accent: #ff7b00;
  --accent-2: #ffb347;
  --container: 1200px;
  --radius: 14px;
  --text-light: #eaf3ff;
  --text-muted: #98a2b3;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'Inter', sans-serif; color: var(--text-light);
  background: linear-gradient(180deg, rgba(10,10,11,0.95), rgba(15,18,22,0.97)), url('./assets/bg.jpg') center/cover no-repeat;
  background-attachment: fixed; scroll-behavior: smooth; line-height: 1.7;
}
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* Utilities */
.muted { color: var(--text-muted); }
.small { font-size: 0.9rem; }
.accent { color: var(--accent); }

/* ================= HERO SECTION ================= */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* Gradient background overlay - subtle premium tone */
.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(255, 123, 0, 0.06),
    rgba(10, 10, 11, 0.98)
  );
  z-index: 0;
}

/* Layout */
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* Text */
.hero-title {
  font-size: 3.3rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.hero-title span {
  color: var(--accent);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
  color: var(--accent-2);
  text-shadow: 0 0 18px rgba(255, 123, 0, 0.25);
}

.hero-desc {
  color: var(--text-light);
  max-width: 560px;
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 35px;
  opacity: 0.95;
}

/* ================= BUTTONS (UNIFIED CAPITULA-STYLE PILL) ================= */
/* This single block replaces/controls all button appearances sitewide:
   .btn, .contact-btn, .btn-nav, project-card overlay button, etc. */

.btn,
.contact-btn,
.btn-nav,
.project-card::after {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 50px;              /* Capitula pill */
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: all 0.3s ease;
  -webkit-backdrop-filter: blur(6px); /* glassy hint where used */
  backdrop-filter: blur(6px);
}

/* Primary (orange gradient) */
.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #101010;
  border: none;
  box-shadow: 0 8px 25px rgba(255, 123, 0, 0.25);
}
.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(255, 180, 70, 0.45);
}

/* Outline variant */
.btn.outline {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
}
.btn.outline:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.08);
}

/* Contact buttons (glassy look) */
.contact-btn {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255,255,255,0.03);
  color: #fff;
  box-shadow: 0 0 18px rgba(0,0,0,0.25);
}
.contact-btn:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.15);
  color: var(--accent-2);
  box-shadow: 0 0 30px rgba(255,123,0,0.25);
}

/* Modal / nav style buttons */
.btn-nav {
  color: var(--accent);
  border: 1px solid var(--accent);
  background: transparent;
}
.btn-nav:hover {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #101010;
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(255,123,0,0.3);
}

/* Icon sizing consistency */
.btn i,
.contact-btn i,
.btn-nav i {
  font-size: 1.05rem;
  min-width: 20px;
  text-align: center;
  transition: transform 0.3s ease, color 0.3s ease;
}
.btn:hover i,
.contact-btn:hover i,
.btn-nav:hover i {
  transform: scale(1.1);
}

/* ================= HERO IMAGE ================= */
.hero-photo {
  flex: 0 0 340px;
  text-align: center;
  position: relative;
  isolation: isolate;
}

/* Clean glass-glow ring behind image */
.hero-photo::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 340px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 180, 70, 0.12) 0%,
    rgba(255, 123, 0, 0.1) 35%,
    transparent 80%
  );
  z-index: 1;
}

/* Image clarity & light reflection */
.hero-photo img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  border: 3px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 18px rgba(255, 179, 71, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.65);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.hero-photo img:hover {
  transform: scale(1.03);
  box-shadow:
    0 0 25px rgba(255, 180, 70, 0.25),
    0 25px 80px rgba(0, 0, 0, 0.7);
}

/* ================= SECTIONS ================= */
.panel { padding:80px 0; position:relative; }
.panel.dark { background: rgba(255,255,255,0.03); border-top:1px solid rgba(255,255,255,0.05); border-bottom:1px solid rgba(255,255,255,0.05); }
h2 { font-size:2rem; text-align:center; margin-bottom:36px; color:#fff; font-weight:700; }

/* ABOUT */
.about-split {
  display:flex;
  gap:40px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:20px;
}
.about-photo img {
  width:280px;
  height:280px;
  object-fit:cover;
  border-radius:var(--radius);
  box-shadow:0 25px 70px rgba(0,0,0,0.65);
  transition: transform .4s ease, box-shadow .4s ease;
}
.about-photo img:hover {
  transform: scale(1.03);
  box-shadow: 0 35px 90px rgba(255,123,0,0.25);
}
.about-content { flex:1 1 520px; max-width:640px; line-height:1.6; }
.about-content h2 { text-align:left; font-size:1.9rem; color:var(--accent-2); margin-bottom:14px; }
.about-content p { font-size:0.96rem; margin-bottom:12px; color:var(--text-light); }
.about-content h3 {
  font-size:1.05rem;
  color:var(--accent);
  margin-top:18px;
  margin-bottom:8px;
  border-left:3px solid var(--accent);
  padding-left:8px;
  font-weight:600;
}
.about-list { list-style:none; margin-top:8px; margin-bottom:10px; }
.about-list li {
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--text-muted);
  font-size:0.93rem;
  margin-bottom:6px;
  transition: color .3s ease, transform .3s ease;
}
.about-list li:hover { color:var(--accent-2); transform:translateX(5px); }
.about-list i { color:var(--accent); font-size:1rem; min-width:18px; text-align:center; }

/* ABOUT EXPERIENCE */
.about-experience {
  margin-top:16px;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,0.08);
}
.about-experience h3 { margin-top:0; }

.exp-item { margin-top:10px; margin-bottom:12px; }
.exp-item h4 { font-size:0.97rem; color:var(--accent-2); font-weight:600; margin-bottom:3px; }
.exp-item p { font-size:0.88rem; color:var(--text-muted); margin-bottom:4px; }

/* ================ PROJECTS ================ */
.projects-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap:28px; }
.project-card {
  background: rgba(255,255,255,0.04);
  border-radius:14px;
  overflow:hidden;
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  cursor:pointer;
  position:relative;
  transition: transform .2s ease, box-shadow .25s ease;
  will-change: transform;
}
.project-card:hover { transform: translateY(-6px); box-shadow:0 30px 60px rgba(255,123,0,0.25); }
.project-card img { width:100%; height:200px; object-fit:cover; transition: transform .5s ease; }
.project-card:hover img { transform: scale(1.05); }
.project-body { padding:16px; }
.project-body h3 { font-size:1.15rem; color:var(--accent-2); margin-bottom:8px; }
.project-body p { color:var(--text-muted); font-size:.95rem; line-height:1.6; }
.project-footer { padding:10px 14px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color:#101010; font-weight:700; text-align:right; }

/* Hover overlay (View details) - ::before and ::after */
.project-card::before {
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.6);
  opacity:0;
  transition:opacity .4s ease;
  border-radius:14px;
  z-index:1;
  pointer-events: none; /* allow clicks to pass-through */
}
.project-card:hover::before { opacity:1; }

/* FULL project-card::after (VIEW DETAILS) - implemented and styled as pill */
.project-card::after {
  content: "View Details →";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.95);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #101010;
  padding: 12px 24px;
  border-radius: 50px; /* pill */
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 8px 25px rgba(255, 123, 0, 0.28);
  z-index: 2;
  opacity: 0;
  transition: all 0.35s ease;
  pointer-events: none; /* visual only by default */
}
.project-card:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.client-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.project-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 6px;
}

/* Light sweep element on project cards */
.light-sweep {
  position:absolute;
  top:0;
  left:-150%;
  width:60%;
  height:100%;
  background: linear-gradient(120deg, rgba(255,255,255,0.06), rgba(255,255,255,0.18), rgba(255,255,255,0.06));
  transform:skewX(-20deg);
  pointer-events:none;
  z-index:2;
}

/* shimmer helper */
.auto-shimmer { animation: shimmer-move 1.4s ease-in-out forwards; }
@keyframes shimmer-move { 0%{ background-position: -200% 0 } 100%{ background-position: 200% 0 } }

/* ================ MODAL ================ */
.modal { position:fixed; inset:0; display:none; align-items:center; justify-content:center; background: rgba(0,0,0,0.88); z-index:3000; backdrop-filter: blur(6px); }
.modal.show { display:flex; }
.modal-wrap { background:#121212; padding:36px; border-radius:18px; max-width:820px; width:90%; text-align:center; box-shadow:0 25px 80px rgba(0,0,0,0.6); position:relative; transform-origin:center center; }
.modal-imgwrap img { width:100%; border-radius:12px; margin-bottom:20px; box-shadow:0 10px 40px rgba(0,0,0,0.5); }
.modal-content h3 { font-size:1.4rem; font-weight:700; color:var(--accent-2); margin-bottom:8px; }
.modal-content p { color:#dfe6f0; font-size:0.98rem; line-height:1.7; margin-bottom:12px; }
.modal-close { position:absolute; top:14px; right:18px; background:none; border:none; color:#fff; font-size:1.9rem; cursor:pointer; transition:0.3s; }
.modal-close:hover { color:var(--accent-2); transform:rotate(90deg); }
.modal-controls { margin-top:24px; display:flex; justify-content:space-between; gap:12px; }

/* --- Project Modal Skill List --- */
.skill-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 8px;
  padding: 0;
}
.skill-list li {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 0.88rem;
  color: var(--accent-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}
.skill-list li:hover {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #101010;
  transform: translateY(-2px);
}

/* ================ REVIEWS ================ */
.reviews-grid { display:grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap:24px; margin-top:30px; }
.review-card { background: rgba(255,255,255,0.05); border-radius:14px; padding:22px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition:0.3s ease; }
.review-card:hover { transform:translateY(-6px); box-shadow:0 10px 35px rgba(255,123,0,0.25); }
.review-card p { color:#eaf3ff; font-size:1rem; margin-bottom:12px; }
.review-card .stars { color:#ffb347; font-size:1.2rem; margin-bottom:6px; }

/* REVIEW FORM */
.review-form { max-width:640px; margin:0 auto; background: rgba(255,255,255,0.03); padding:30px; border-radius:14px; box-shadow:0 20px 50px rgba(0,0,0,0.6); }
.field { margin-bottom:16px; }
label { display:block; font-weight:600; margin-bottom:6px; }
input, textarea { width:100%; padding:10px; border-radius:8px; background:transparent; border:1px solid rgba(255,255,255,0.1); color:#fff; }
textarea { resize:none; }
.charcount { margin-top:6px; font-size:0.85rem; color:var(--text-muted); }

/* STAR RATING */
.star-row { display:flex; justify-content:flex-start; gap:6px; }
.star { background:none; border:none; font-size:1.7rem; color:#444; cursor:pointer; transition:all .25s ease; }
.star:hover, .star.selected { color:#ffb347; text-shadow:0 0 12px rgba(255,180,70,0.8); transform:scale(1.15) translateY(-2px); }
.star.selected:hover { color:#ff7b00; transform:scale(1.2); }

/* === STAR CLICK PULSE ANIMATION === */
.star.selected {
  animation: starPulse 0.6s ease-out;
  color: #ffb347;
  text-shadow: 0 0 12px rgba(255, 180, 70, 0.8);
}

@keyframes starPulse {
  0% {
    transform: scale(1);
    text-shadow: 0 0 0 rgba(255, 180, 70, 0);
  }
  40% {
    transform: scale(1.3);
    text-shadow: 0 0 22px rgba(255, 180, 70, 0.85);
  }
  100% {
    transform: scale(1);
    text-shadow: 0 0 12px rgba(255, 180, 70, 0.6);
  }
}

/* Typing highlight on textarea */
.typing-highlight { box-shadow: 0 6px 30px rgba(37, 150, 255, 0.08) inset, 0 8px 30px rgba(37,150,255,0.06); transform: translateZ(0); }

/* ================= CONTACT SECTION ================= */
.contact-grid {
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:16px;
  margin-top:36px;
}

/* contact-btn base styles handled in unified buttons section above */

/* Platform accent glows (preserve per-platform color on hover) */
.contact-btn.email:hover { box-shadow: 0 0 25px rgba(234,67,53,0.35); color: #ea4335; }
.contact-btn.linkedin:hover { box-shadow: 0 0 25px rgba(10,102,194,0.35); color: #0a66c2; }
.contact-btn.fiverr:hover { box-shadow: 0 0 25px rgba(29,191,115,0.35); color: #1dbf73; }
.contact-btn.upwork:hover { box-shadow: 0 0 25px rgba(111,218,68,0.35); color: #6fda44; }
.contact-btn.whatsapp:hover { box-shadow: 0 0 25px rgba(37,211,102,0.35); color: #25d366; }

/* Icon consistency within contact buttons */
.contact-btn i { min-width:20px; text-align:center; transition:transform .3s ease; }

/* Mobile friendly layout for contact grid */
@media (max-width:640px) {
  .contact-grid { flex-direction:column; align-items:center; }
  .contact-btn { width:85%; justify-content:center; }
}

/* Fiverr icon fallback sizing */
.fiverr-icon { width:20px; height:20px; object-fit:contain; filter:brightness(100%) invert(1); transition: transform .3s ease; }

/* Brand hovers (additional smaller shadow) */
.contact-btn.email:hover { color:#EA4335; box-shadow:0 0 15px #EA4335; }
.contact-btn.linkedin:hover { color:#0A66C2; box-shadow:0 0 15px #0A66C2; }
.contact-btn.fiverr:hover { color:#1DBF73; box-shadow:0 0 15px #1DBF73; }
.contact-btn.upwork:hover { color:#6fda44; box-shadow:0 0 15px #6fda44; }
.contact-btn.whatsapp:hover { color:#25D366; box-shadow:0 0 15px #25D366; }

/* Icons color targets */
.contact-btn:hover .fa-whatsapp { color:#25D366; }
.contact-btn:hover .fa-linkedin { color:#0A66C2; }
.contact-btn:hover .fa-fiverr { color:#1DBF73; }
.contact-btn:hover .fa-upwork { color:#6fda44; }

/* WHATSAPP FLOAT */
.whatsapp-float { position: fixed; bottom: 85px; right: 25px; width:58px; height:58px; background: linear-gradient(135deg,#20b858,#128C7E); color:#fff; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:28px; box-shadow:0 8px 25px rgba(0,0,0,0.45); transition:all .3s ease; z-index:3000; }
.whatsapp-float:hover { transform:scale(1.1) translateY(-3px); background:linear-gradient(135deg,#25D366,#1EBE5C); box-shadow:0 10px 35px rgba(37,211,102,0.35); }

/* Confetti container + pieces */
.confetti { position: fixed; pointer-events: none; left:0; top:0; width:100%; height:100%; z-index:4000; overflow:hidden; }
.confetti-piece { position:absolute; width:10px; height:16px; border-radius:2px; opacity:0.95; transform-origin:center; will-change: transform, opacity; }

/* Thank you popup */
.thank-you-popup { position: fixed; left:50%; top:18%; transform:translateX(-50%) translateY(-8px); background: linear-gradient(90deg,var(--accent),var(--accent-2)); color:#101010; padding:12px 20px; border-radius:12px; font-weight:700; box-shadow:0 10px 40px rgba(0,0,0,0.45); z-index:4500; opacity:0; pointer-events:none; }

/* FOOTER */
footer { width:100%; background: linear-gradient(180deg,#0c0c0d 0%, #000 100%); border-top:1px solid rgba(255,255,255,0.05); text-align:center; font-size:0.75rem; color:rgba(255,255,255,0.6); letter-spacing:0.3px; line-height:1.4; padding:12px 0 10px; opacity:0.95; position:relative; z-index:10; margin-top:60px; box-shadow:0 -10px 25px rgba(0,0,0,0.4); }
footer p { margin:0; padding:0; }

/* Responsive */
@media (max-width:980px) { .hero-inner{flex-direction:column-reverse;text-align:center} .hero-photo img{width:240px;height:240px} .about-split{flex-direction:column;text-align:center} .about-content h2{text-align:center} }
@media (max-width:640px) {
  .hero-title {font-size:2.3rem}
  .hero-sub {font-size:1rem}
  .project-card img { height:160px }
  .contact-btn { width:100%; justify-content:center }
  .whatsapp-float { width:54px; height:54px; font-size:26px; bottom:18px; right:18px; }
  /* Buttons responsiveness (ensure pills scale on mobile) */
  .btn, .contact-btn, .btn-nav, .project-card::after {
    width: 85%;
    justify-content: center;
    padding: 12px 24px;
    font-size: 0.92rem;
  }
}