/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reset & base */
:root{
  --bg: #f9fbff;
  --card: #ffffff;
  --text: #243044;
  --muted: #6b7280;
  --primary: #4a90e2;
  --accent: #f5a623;
  --glass: rgba(255,255,255,0.6);
  --shadow: 0 10px 30px rgba(36,48,68,0.08);
}
* { box-sizing: border-box; }
html,body { height:100%; }
body{
  margin:0;
  font-family: "Inter", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height:1.6;
}

/* container helper */
.container{
  width: min(1180px, 92%);
  margin: 0 auto;
}

/* Floating shapes */
.float-wrap{ position:fixed; inset:0; pointer-events:none; z-index:0; }
.float-shape{
  position:absolute;
  width:120px; height:120px; border-radius:28%;
  filter: blur(12px);
  opacity:0.55;
  transform: translate3d(0,0,0);
  animation: floatY 12s ease-in-out infinite;
}
.float-shape.s1{ left:6%; top:10%; background:linear-gradient(135deg,#4a90e2,#74b9ff); animation-delay:0s; width:140px;height:140px; }
.float-shape.s2{ right:6%; top:18%; background:linear-gradient(135deg,#f5a623,#ffd280); animation-delay:2s; }
.float-shape.s3{ left:12%; bottom:12%; background:linear-gradient(135deg,#9b59b6,#c39bd3); animation-delay:4s; width:100px;height:100px; }
.float-shape.s4{ right:18%; bottom:8%; background:linear-gradient(135deg,#50e3c2,#a0f0e0); animation-delay:6s; width:130px;height:130px; }
.float-shape.s5{ left:45%; top:45%; background:linear-gradient(135deg,#ffd1dc,#ffd6ba); animation-delay:8s; width:90px;height:90px; }

@keyframes floatY{
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-40px) rotate(8deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

/* Header */
.site-header{ position:sticky; top:0; z-index:40; background:transparent; }
.header-inner{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:18px 0;
}
.brand{ font-weight:700; font-family:"Poppins"; font-size:20px; color:var(--text); text-decoration:none; }
.brand span{ color:var(--primary); }
.nav a{ margin-left:18px; color:var(--text); text-decoration:none; font-weight:600; }
.nav a:hover{ color:var(--primary); }

/* Sections base */
.section{ padding:84px 0; position:relative; z-index:5; }
.section-box{ background:var(--card); border-radius:14px; box-shadow:var(--shadow); padding:28px; }

/* HERO */
.hero-inner{ display:flex; gap:40px; align-items:center; justify-content:space-between; }
.hero-left{ flex:1; z-index:5; }
.eyebrow{ font-weight:600; color:var(--muted); margin-bottom:10px; }
.hero-left h1{ font-size:44px; line-height:1.05; margin:0 0 10px; font-weight:700; }
.accent{ color:var(--primary); }
.typing{ font-size:20px; color:var(--primary); margin-bottom:18px; font-weight:600; min-height:28px; }
.lead{ color:var(--muted); max-width:60ch; margin-bottom:18px; }

/* Buttons */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:10px 18px; border-radius:10px; font-weight:700; text-decoration:none; cursor:pointer; border: none; }
.btn-primary{ background:var(--primary); color:#fff; box-shadow: 0 6px 18px rgba(74,144,226,0.15); }
.btn-primary:hover{ transform:translateY(-4px); box-shadow:0 12px 30px rgba(74,144,226,0.18); }
.btn-outline{ background:transparent; color:var(--primary); border:2px solid rgba(74,144,226,0.12); }
.btn-light{ background:#fff; color:var(--text); border:1px solid rgba(0,0,0,0.04); }

/* portrait card */
.card.portrait{ background:linear-gradient(180deg, rgba(255,255,255,0.8), #fff); padding:18px; border-radius:14px; width:380px; box-shadow:var(--shadow); display:flex; align-items:center; justify-content:center; }
.card img{ width:100%; border-radius:12px; display:block; }

/* About grid */
.about-grid{ display:flex; gap:32px; align-items:center; }
.about-img img{ width:320px; border-radius:12px; display:block; box-shadow:0 8px 30px rgba(0,0,0,0.08); }
.about-content h2{ margin-top:0; margin-bottom:12px; font-size:28px; color:var(--text); }
.meta-list{ list-style:none; padding:0; margin:12px 0 0; color:var(--muted); }

/* Skills grid */
.skills-grid{ display:grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap:18px; margin-top:18px; }
.skill-card{ padding:18px; border-radius:12px; background:linear-gradient(180deg, rgba(255,255,255,0.85), #fff); box-shadow:var(--shadow); transition:transform .28s ease; }
.skill-card:hover{ transform:translateY(-6px); }

/* Projects */
.project-grid{ display:grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap:20px; margin-top:22px; }
.project-card{ border-radius:12px; overflow:hidden; background:linear-gradient(180deg, rgba(255,255,255,0.95), #fff); box-shadow:var(--shadow); display:flex; flex-direction:column; transition:transform .32s ease, box-shadow .32s ease; }
.project-card img{ width:100%; height:190px; object-fit:cover; display:block; }
.project-body{ padding:16px; flex:1; display:flex; flex-direction:column; justify-content:space-between; }
.project-card:hover{ transform:translateY(-10px); box-shadow:0 20px 40px rgba(36,48,68,0.15); }
.project-actions{ display:flex; gap:12px; margin-top:14px; }

/* Contact form */
.contact-form{ display:flex; flex-direction:column; gap:12px; margin-top:12px; }
.form-row{ display:flex; gap:12px; }
.form-row input{ flex:1; }
input[type="text"], input[type="email"], textarea{
  padding:12px; border-radius:10px; border:1px solid rgba(36,48,68,0.06); font-size:15px; background:#fff;
}
.form-actions{ display:flex; gap:12px; justify-content:flex-start; margin-top:8px; }
.form-note{ color:var(--muted); font-size:14px; margin-top:8px; }

/* Footer */
.site-footer{ padding:26px 0; text-align:center; color:var(--muted); background:transparent; }

/* Small screens */
@media (max-width:900px){
  .hero-inner{ flex-direction:column-reverse; gap:28px; }
  .hero-left, .hero-right{ width:100%; }
  .about-grid{ flex-direction:column; }
  .form-row{ flex-direction:column; }
  .header-inner{ padding:12px 0; }
  .brand{ font-size:18px; }
}

/* Certifications Section */
.certifications {
  text-align: center;
  position: relative;
}

.cert-wrapper {
  position: relative; /* keeps arrows contained */
  display: flex;
  align-items: center;
  width: 100%;        /* ensure full width of the section */
  max-width: 100%;    /* prevent overflow */
}

.cert-scroll {
  display: flex;
  gap: 20px;              /* spacing between cards */
  overflow-x: auto;        /* horizontal scroll */
  padding: 20px 0;         /* top/bottom padding */
  scroll-behavior: smooth; /* smooth scroll */
}

.cert-scroll::-webkit-scrollbar {
  display: none; /* hide scrollbar */
}

/* Cert card styling */
.cert-card {
  flex: 0 0 260px;          /* fixed width so scrolling works well */
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  transition: 0.3s ease;
  text-align: center;
}

.cert-card:hover {
  transform: translateY(-8px) scale(1.02);
}

.cert-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 15px;
}

.cert-card h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--primary);
}

.cert-card p {
  font-size: 14px;
  color: #666;
}

/* Scroll buttons */
.scroll-btn {
  background: rgba(0,0,0,0.05);
  border: none;
  border-radius: 50%;
  font-size: 30px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  position: absolute;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.3s;
}

.scroll-btn:hover {
  background: rgba(0,0,0,0.1);
}

.scroll-btn.left {
  left: 0;   /* move inside the wrapper */
}

.scroll-btn.right {
  right: 0;  /* move inside the wrapper */
}

/* Lightbox overlay */
.cert-lightbox {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

/* Lightbox image */
.cert-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
