*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #060d18;
  --bg2: #0b1628;
  --bg3: #0f1e36;
  --accent: #00d4ff;
  --accent2: #0099cc;
  --accent-glow: rgba(0, 212, 255, 0.25);
  --text: #e8f4f8;
  --muted: #7a9bb5;
  --border: rgba(0, 212, 255, 0.15);
  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── BACKGROUND GRID ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 6%;
  background: rgba(6, 13, 24, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2.2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-btn {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.5rem 1.3rem;
  border-radius: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.nav-btn:hover { background: #33deff; transform: translateY(-1px); }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── HERO ── */
#home {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 6% 4rem;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1100px;
  width: 100%;
}

.hero-tag {
  display: inline-block;
  background: rgba(0,212,255,0.1);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 20px;
  margin-bottom: 1.2rem;
  animation: fadeUp 0.6s ease both;
}

.hero-name {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
  animation: fadeUp 0.7s 0.1s ease both;
}

.hero-name span { color: var(--accent); }

.hero-roles {
  margin-top: 0.8rem;
  font-family: var(--font-head);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 600;
  color: var(--muted);
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-desc {
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 460px;
  animation: fadeUp 0.7s 0.3s ease both;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.4s ease both;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover { background: #33deff; transform: translateY(-2px); box-shadow: 0 0 32px rgba(0,212,255,0.4); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 0.75rem 1.8rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-outline:hover { background: rgba(0,212,255,0.08); border-color: var(--accent); transform: translateY(-2px); }

/* ── STATS ── */
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  animation: fadeUp 0.7s 0.5s ease both;
}

.stat { text-align: center; }

.stat-num {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.5px;
}

/* ── HERO IMAGE ── */
.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.9s 0.2s ease both;
}

.glow-ring {
  position: relative;
  width: 320px;
  height: 320px;
}

.glow-ring::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 60%, var(--accent) 80%, transparent 100%);
  animation: spin 4s linear infinite;
}

.glow-ring::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, transparent 60%, rgba(0,212,255,0.4) 80%, transparent 100%);
  animation: spin 7s linear infinite reverse;
}

.profile-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.profile-placeholder {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg3);
  border: 3px solid var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.profile-placeholder i {
  font-size: 5rem;
  color: var(--accent);
  opacity: 0.6;
}

.profile-placeholder span {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── SECTIONS COMMON ── */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 6%;
}

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-tag {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-title span { color: var(--accent); }

.section-desc {
  color: var(--muted);
  max-width: 560px;
  font-size: 0.97rem;
  margin-bottom: 3rem;
}

.divider {
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0.8rem 0 1.2rem;
}

/* ── ABOUT ── */
#about { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: center;
}

.about-img-box { position: relative; }

.about-img-inner {
  width: 100%;
  aspect-ratio: 1;
  max-width: 360px;
  border-radius: 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.about-img-inner i { font-size: 6rem; color: var(--accent); opacity: 0.3; }

.about-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--accent);
  color: var(--bg);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 8px 24px var(--accent-glow);
}

.about-badge small { display: block; font-size: 0.7rem; font-weight: 500; }

.about-info p { color: var(--muted); font-size: 0.97rem; margin-bottom: 1rem; }

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.detail-item { display: flex; flex-direction: column; }
.detail-item .key { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.5px; }
.detail-item .val { font-size: 0.95rem; font-weight: 500; color: var(--text); }

/* ── SKILLS ── */
#skills { background: var(--bg); }

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

.skill-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.skill-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.skill-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(0,212,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.1rem;
}

.skill-card-header h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
}

.skill-bar-wrap { margin-bottom: 0.85rem; }

.skill-bar-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 5px;
}

.skill-bar-track {
  height: 5px;
  background: var(--bg3);
  border-radius: 3px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  border-radius: 3px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}

/* ── EXPERIENCE ── */
#experience { background: var(--bg2); }

.timeline {
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2.08rem;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  border: 2px solid var(--bg2);
}

.timeline-card {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  transition: border-color 0.2s;
}

.timeline-card:hover { border-color: var(--accent); }

.timeline-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.timeline-title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
}

.timeline-period {
  background: rgba(0,212,255,0.1);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  white-space: nowrap;
}

.timeline-org {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.timeline-desc {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── CERTIFICATIONS ── */
#certifications { background: var(--bg); }

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.cert-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  transition: border-color 0.2s, transform 0.2s;
}

.cert-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cert-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 7px;
  flex-shrink: 0;
}

.cert-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
}

.cert-source {
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ── CONTACT ── */
#contact { background: var(--bg2); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-info p { color: var(--muted); font-size: 0.94rem; margin-bottom: 1.5rem; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(0,212,255,0.1);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item .ci-label { font-size: 0.76rem; color: var(--muted); }
.contact-item .ci-val { font-size: 0.92rem; font-weight: 500; color: var(--text); }

.social-links {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-link:hover { color: var(--accent); border-color: var(--accent); background: rgba(0,212,255,0.08); }

/* ── FORM ── */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-group label { font-size: 0.82rem; color: var(--muted); font-weight: 500; }

.form-group input,
.form-group textarea {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-group textarea { min-height: 120px; }

.form-submit {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-start;
}

.form-submit:hover { background: #33deff; transform: translateY(-2px); }

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 2rem 6%;
  color: var(--muted);
  font-size: 0.88rem;
}

footer span { color: var(--accent); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 18px transparent; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-image-wrap { order: -1; }
  .glow-ring { width: 240px; height: 240px; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-desc { margin: 1.2rem auto 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-inner { max-width: 260px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(6, 13, 24, 0.98);
    padding: 1.5rem 6%;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
  }
  .hamburger { display: flex; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .about-details { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.2rem; }
}

<<<<<<< HEAD
=======
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;      /* Prevents stretching */
  object-position: top;   /* <--- This is the fix: it aligns the crop to the top */
  display: block;
}
>>>>>>> c8e9e89ad12c54396799603dde4ec16c17fe6851
