/* === THEME VARIABLES === */
:root {
  --bg1: #0f2027;
  --bg2: #203a43;
  --bg3: #2c5364;
  --ink: #DEF2F1;
  --ink-d: #17252A;
  --brand: #2b7a78;
  --brand-2: #3AAFA9;
  --accent: #ffd700;
}

/* === GLOBAL BASE === */
html, body {
  height: 100%;
}
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--bg1), var(--bg2), var(--bg3));
  background-attachment: fixed; /* smooth scrolling effect */
  overflow-x: hidden;
}

/* === SCROLL PROGRESS BAR === */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg,#22d3ee,#a78bfa,#34d399);
  z-index: 2000;
}

/* === NAVBAR === */
.glass-nav {
  backdrop-filter: saturate(140%) blur(8px);
  background: rgba(0,0,0,.6) !important;
}
.navbar { z-index: 1030; }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  text-align: center;
  color: #fff;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 10% 10%, rgba(96,165,250,.13), transparent),
              radial-gradient(900px 500px at 90% 90%, rgba(167,139,250,.12), transparent);
}
.hero .display-5 { opacity: 1; transform: none; }

.blob { position: absolute; border-radius: 9999px; filter: blur(60px); opacity: .7; pointer-events: none; }
.blob-1 { top: -6rem; left: -6rem; width: 28rem; height: 28rem; background: #60a5fa33; animation: float 14s ease-in-out infinite; }
.blob-2 { right: -6rem; bottom: -6rem; width: 30rem; height: 30rem; background: #a78bfa33; animation: float 18s ease-in-out infinite reverse; }
.blob-3 { right: 30%; top: 40%; width: 22rem; height: 22rem; background: #34d39933; animation: pulse 16s ease-in-out infinite; }

@keyframes float { 0%{transform:translate(0,0)} 50%{transform:translate(20px,-12px)} 100%{transform:translate(0,0)} }
@keyframes pulse { 0%{transform:scale(1)} 50%{transform:scale(1.08)} 100%{transform:scale(1)} }

.cta-magnetic { position: relative; overflow: hidden; }
.cta-magnetic::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-110%);
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent);
  transition: transform .7s ease; opacity: .8;
}
.cta-magnetic:hover::after { transform: translateX(110%); }

/* === SECTIONS === */
.section { padding: 80px 0; background: transparent; }
.section.alt { background: transparent; }
.section-title {
  text-align: center;
  margin-bottom: 32px;
  color: #fff;
  font-weight: 700;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 8px;
}

/* === CONTENT CARDS === */
.content-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

/* === EXPERIENCE LOGOS (fix squished logos) === */
.exp-logo {
  flex: 0 0 80px;                  /* reserve space for logo */
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;             /* soft square */
  overflow: hidden;
}

.exp-logo img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;       /* keep aspect ratio */
  object-fit: contain;             /* fit inside box without distortion */
  border-radius: 0;                /* no forced rounding on the image */
}

/* Smaller container on mobile */
@media (max-width: 480px){
  .exp-logo { flex-basis: 64px; width: 64px; height: 64px; }
}

/* === TIMELINE (fix squished logos) === */
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 15px; width: 4px;
  background: #ffffff33; border-radius: 2px;
}

.timeline-item {
  display: flex; gap: 16px; margin-bottom: 20px; position: relative;
  align-items: center;                 /* center icon + text vertically */
}

.timeline-icon {
  flex: 0 0 56px;                      /* fixed space for the icon */
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;                  /* soft square; avoids weird cropping */
  overflow: hidden;
}

.timeline-icon img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;           /* preserve aspect ratio */
  object-fit: contain;                  /* fit inside without distortion */
  border-radius: 0;                     /* no forced circle */
}

/* mobile: make the icon a bit smaller so text has room */
@media (max-width: 480px){
  .timeline-icon { flex-basis: 48px; width: 48px; height: 48px; }
}

/* === SKILLS === */
.skill-item { cursor: default; position: relative; z-index: 1; }
.skill-item .logo {
  width: 140px; height: auto;
  transition: transform .3s, filter .3s;
  display: block; margin: 0 auto;
}
.skill-item .logo:hover { transform: scale(1.07); filter: drop-shadow(0 0 10px #0dcaf0); }
.skill-item::after { pointer-events: none; }

/* === PROJECTS === */
.project img { border-radius: 12px; }

/* === CONTACT & FOOTER === */
.link-light { text-decoration: none; }
.link-light:hover { text-decoration: underline; }
footer { background: rgba(0,0,0,.7); }

/* === REVEAL ANIMATION === */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE TWEAKS === */
@media (max-width: 992px) {
  .skill-item .logo { width: 110px; }
}
@media (max-width: 576px) {
  .hero .display-5 { font-size: 1.9rem; }
  .section { padding: 64px 0; }
  .section-title { font-size: 1.6rem; }
  .skill-item .logo { width: 92px; }
}

/* === GLOBAL IMAGE RULE === */
img { max-width: 100%; height: auto; }
