:root{
  --gold:#f8c471;
  --teal:#4fd1c5;
  --text:#ffffff;
  --glass-bg: rgba(0,0,0,0.40);
  --card-bg: rgba(255,255,255,0.06);
  --card-stroke: rgba(255,255,255,0.18);
  --shadow-glow: 0 0 24px rgba(79,209,197,0.35);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text);
  overflow-x: hidden;
  background: #000;
}

/* === Background video === */
.video-container {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.98) contrast(1.06) saturate(1.08);
}
.video-container::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(55% 50% at 50% 35%, rgba(255,255,255,0.12), transparent 62%),
    linear-gradient(120deg, rgba(0,0,0,0.34), rgba(0,0,0,0.22));
}

/* === Scroll progress bar === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 12px rgba(79,209,197,0.55);
  z-index: 2000;
  pointer-events: none;
  transition: width 0.08s linear;
  mix-blend-mode: screen;
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.38);
  backdrop-filter: blur(10px);
  padding: 14px 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 36px;
  z-index: 1200;
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.navbar a, .navbar .dropbtn {
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  transition: all .25s ease;
}
.navbar a:hover, .navbar .dropbtn:hover {
  background: linear-gradient(90deg, var(--gold), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.navbar a::after, .navbar .dropbtn::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  transition: width .25s ease;
}
.navbar a:hover::after, .navbar .dropbtn:hover::after { width: 100%; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-content {
  display: none;
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 170px;
  padding: 8px;
  background: rgba(0,0,0,0.92);
  border: 1px solid var(--card-stroke);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  animation: fadeIn .2s ease;
  z-index: 1500;
}
.dropdown-content a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  transition: .2s ease;
}
.dropdown-content a:hover {
  background: linear-gradient(90deg, rgba(248,196,113,0.15), rgba(79,209,197,0.15));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.dropdown:hover .dropdown-content { display: block; }

/* === Container === */
.container {
  max-width: 1000px;
  margin: 120px auto 60px;
  padding: 28px 26px;
  background: var(--glass-bg);
  border-radius: 16px;
  border: 1px solid var(--card-stroke);
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(10px);
  animation: fadeIn .9s ease both;
}

/* Headings */
h1, h2 {
  margin: 12px 0 18px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
h1 { font-size: 32px; }
h2 { font-size: 24px; }

/* Sections */
.section {
  margin: 28px 0;
  padding: 22px 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-stroke);
  border-radius: 14px;
  transition: transform .25s ease, box-shadow .25s ease;
  opacity: 0;
  transform: translateY(18px);
}
.section:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.35), 0 0 22px rgba(248,196,113,0.25);
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease;
}

/* Text & Links */
p { margin: 10px 0; line-height: 1.7; text-align: justify; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: #fff; text-shadow: 0 0 8px var(--gold); }

/* Divider */
hr {
  border: none;
  height: 2px;
  margin: 26px 0 6px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  border-radius: 3px;
  opacity: .65;
}

/* Skills */
.skill { margin: 14px 0; text-align: left; }
.progress-bar {
  height: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--card-stroke);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 6px;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  box-shadow: inset 0 0 10px rgba(79,209,197,0.5);
  transition: width 1.2s ease;
}

/* Timeline */
.timeline {
  position: relative;
  margin: 10px 0 0;
  padding-left: 44px;
  text-align: left;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--teal));
  border-radius: 2px;
  opacity: .75;
}
.timeline-item {
  position: relative;
  margin: 14px 0;
  padding-left: 36px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, var(--gold) 45%, var(--teal));
  box-shadow: 0 0 10px rgba(79,209,197,0.6);
  border: 1px solid rgba(255,255,255,0.6);
}

/* Back to top */
#backToTop {
  position: fixed;
  right: 24px;
  bottom: 26px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  color: #0b0b0b;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(0,0,0,0.35), 0 0 18px rgba(79,209,197,0.45);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .25s ease;
  z-index: 1201;
}
#backToTop.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#backToTop:hover { transform: translateY(-2px) scale(1.04); }

/* Footer */
.footer {
  text-align: center;
  padding: 22px;
  background: rgba(0,0,0,0.55);
  border-top: 1px solid var(--card-stroke);
  box-shadow: 0 -2px 18px rgba(0,0,0,0.35);
}
.footer a { color: var(--teal); }
.footer a:hover { color: var(--gold); text-shadow: 0 0 10px var(--gold), 0 0 16px var(--teal); }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 900px){
  .navbar { gap: 18px; padding: 12px 14px; }
  .container { margin: 110px 14px 50px; padding: 20px 16px; }
}
@media (max-width: 560px){
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  .timeline { padding-left: 38px; }
  .timeline::before { left: 19px; }
  .timeline-item { padding-left: 32px; }
  .timeline-item::before { left: 12px; }
}
/* ===== Improved Readability for Text Sections ===== */

/* Section container spacing */
.section {
  margin: 36px 0;
  padding: 28px 24px;
  line-height: 1.75;
  letter-spacing: 0.25px;
  font-size: 17px;
}

/* Headings inside sections */
.section h2 {
  margin-bottom: 18px;
  font-size: 26px;
  line-height: 1.3;
}

.section h3 {
  margin-top: 22px;
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.4;
}

/* Paragraphs */
.section p {
  margin-bottom: 16px;
  text-align: justify;
}

/* Lists for better spacing */
.section ul,
.section ol {
  margin-top: 10px;
  margin-left: 22px;
  padding-left: 8px;
}

.section li {
  margin-bottom: 14px;
  line-height: 1.65;
}

.section ol li strong {
  display: block;
  font-size: 1.05em;
  margin-bottom: 4px;
  color: var(--gold);
}

/* Timeline spacing enhancement */
.timeline .timeline-item {
  margin-bottom: 16px;
}

/* Max-width and centering for better reading on big screens */
.container {
  max-width: 900px;
  padding: 40px 30px;
}

/* Slight increase in base text size on larger screens */
@media (min-width: 1000px) {
  body {
    font-size: 17px;
  }
  .section {
    font-size: 17px;
    line-height: 1.8;
  }
}

/* Responsive adjustments for mobile readability */
@media (max-width: 560px) {
  .section {
    padding: 22px 18px;
    font-size: 16px;
    line-height: 1.65;
  }
  .section h2 {
    font-size: 22px;
  }
  .section h3 {
    font-size: 18px;
  }
  .section li {
    margin-bottom: 12px;
  }
}

