:root{
  --bg: #0b1220;
  --card: rgba(255,255,255,0.06);
  --text: #eaf0ff;
  --muted: rgba(234,240,255,0.72);
  --accent: #6ee7ff;
  --border: rgba(255,255,255,0.12);
  --shadow: 0 10px 30px rgba(0,0,0,0.25);
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: radial-gradient(1200px 700px at 10% 10%, rgba(110,231,255,0.16), transparent 60%),
              radial-gradient(1200px 700px at 90% 20%, rgba(255,255,255,0.08), transparent 55%),
              var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a{ color: var(--accent); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ===========================
   Loader
=========================== */
.loader{
  position: fixed;
  inset: 0;
  background: #0b1220;
  display: grid;
  place-items: center;
  z-index: 999999;
}

.loader-inner{ text-align: center; }

.loader-name{
  font-size: 64px;
  font-weight: 1000;
  letter-spacing: 8px;
  color: var(--accent);
  text-shadow: 0 0 25px rgba(110,231,255,0.35);
  animation: glow 1.2s infinite alternate;
}

.loader-line{
  width: 120px;
  height: 4px;
  background: rgba(255,255,255,0.10);
  border-radius: 999px;
  margin: 18px auto 10px;
  overflow: hidden;
  position: relative;
}

.loader-line::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: loading 1.1s infinite linear;
}

.loader-text{
  font-size: 14px;
  color: rgba(234,240,255,0.72);
  font-weight: 700;
  letter-spacing: 0.5px;
}

@keyframes loading{
  0%{ transform: translateX(-100%); }
  100%{ transform: translateX(100%); }
}

@keyframes glow{
  0%{ transform: scale(1); opacity: 0.8; }
  100%{ transform: scale(1.03); opacity: 1; }
}

.loader.hide{
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

/* ===========================
   Navbar
=========================== */
.navbar{
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: rgba(11, 18, 32, 0.65);
  border-bottom: 1px solid var(--border);
}

.nav-content{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  gap: 12px;
}

.logo{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text);
}
.logo span{ color: var(--accent); }

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

.nav-links a{
  color: var(--text);
  opacity: 0.86;
  font-weight: 600;
}
.nav-links a:hover{
  opacity: 1;
  text-decoration: none;
}

.menu-btn{
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

/* ===========================
   Hero
=========================== */
.hero{ padding: 70px 0 40px; }

.hero-grid{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
}

.badge{
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 14px;
}

.hero h1{
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.15;
  margin-bottom: 16px;
}

.accent{ color: var(--accent); }

.subtitle{
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 20px;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* ===========================
   Cards
=========================== */
.card, .hero-card, .project-card, .skill-box{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-card{
  position: sticky;
  top: 90px;
  text-align: center;
}

/* Profile photo */
.profile-photo{
  width: 240px;
  height: 240px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.18);
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
  margin: 0 auto 14px auto;
  display: block;
}

@media (max-width: 900px){
  .profile-photo{ width: 180px; height: 180px; }
}
@media (max-width: 520px){
  .profile-photo{ width: 150px; height: 150px; }
}

/* ===========================
   Quick Links (Icons)
=========================== */
.quick-links{
  display: flex;
  gap: 14px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.quick-links a{
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 10px 22px rgba(0,0,0,0.25);

  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.quick-links img{
  width: 30px;
  height: 30px;
  object-fit: contain; /* better for svg */
}

.quick-links a:hover{
  transform: translateY(-4px) scale(1.04);
  border-color: rgba(110,231,255,0.45);
  box-shadow: 0 16px 35px rgba(110,231,255,0.12), 0 10px 22px rgba(0,0,0,0.35);
  text-decoration: none;
}

.quick-links a:focus{
  outline: 2px solid rgba(110,231,255,0.5);
  outline-offset: 4px;
}

/* Text info in hero card */
.card-title{
  font-size: 18px;
  margin-bottom: 10px;
}

.info-list{
  list-style: none;
  display: grid;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 14px;
  text-align: left;
}
.info-list span{ color: var(--text); font-weight: 700; }

/* ===========================
   Sections
=========================== */
.section{ padding: 64px 0; }

.section.alt{
  background: rgba(255,255,255,0.02);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title{
  font-size: 26px;
  margin-bottom: 10px;
}

.section-desc{
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 22px;
}

.cards-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Skills */
.skills-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.chip{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
}

/* Projects */
.project-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.project-card h3{ margin-bottom: 6px; }

.muted{
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.project-actions{ margin-top: 12px; }

/* Timeline */
.timeline{
  display: grid;
  gap: 16px;
}

.timeline-item ul{
  margin-top: 10px;
  padding-left: 18px;
  color: var(--muted);
}

/* Experience header with logo */
.exp-header{
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 10px;
}

.exp-logo{
  width: 100px;
  height: 100px;
  border-radius: 16px;
  object-fit: contain;
  padding: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* Responsive: logo stacked on mobile */
@media (max-width: 600px){
  .exp-header{
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Experience letter section */
.exp-letter{
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  border-radius: 16px;
}

.exp-letter-title{
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 10px;
}

.exp-letter-note{
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* Modal */
.modal{
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
  padding: 24px;
  overflow: hidden;
}

.modal-content{
  position: relative;
  max-width: 950px;
  margin: auto;
  border-radius: 18px;
  overflow: auto;
  max-height: 90vh;
  border: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.95);
  box-shadow: var(--shadow);
}

.modal-img{
  width: 100%;
  height: auto;
  display: block;
}

.modal-close{
  position: sticky;
  top: 10px;
  margin-left: auto;
  display: block;
  margin-top: 10px;
  margin-right: 10px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  color: white;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 16px;
}
.modal-close:hover{ opacity: 0.8; }

/* Buttons */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 800;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.04);
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.btn:hover{ transform: translateY(-1px); opacity: 0.95; text-decoration: none; }

.btn.primary{
  background: linear-gradient(135deg, var(--accent), rgba(255,255,255,0.8));
  color: var(--bg);
  border: none;
}

.btn.outline{ background: transparent; }

.btn.small{
  padding: 8px 11px;
  border-radius: 10px;
  font-size: 14px;
}

/* Contact */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  margin-top: 6px;
  margin-bottom: 12px;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.18);
  color: var(--text);
  outline: none;
}

.contact-form label{
  font-weight: 800;
  font-size: 14px;
}

.form-note{
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
.footer{ padding: 18px 0; }

.footer-grid{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
}

/* ===========================
   Responsive
=========================== */
@media (max-width: 900px){
  .hero-grid{ grid-template-columns: 1fr; }

  .hero-card{
    position: relative;
    top: 0;
  }

  .cards-grid, .skills-grid, .project-grid{
    grid-template-columns: 1fr;
  }

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

  .menu-btn{ display: inline-flex; }

  .nav-links{
    display: none;
    position: absolute;
    right: 4%;
    top: 62px;
    flex-direction: column;
    padding: 14px;
    background: rgba(11, 18, 32, 0.92);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: 92%;
  }

  .nav-links.show{ display: flex; }
}
