:root {
  --bg: #0f111f;
  --card: #131828;
  --accent: #00b0ff;
  --accent2: #00ffc2;
  --muted: #a0a8c0;
  --text: #e0e6f2;
  --glass: rgba(255, 255, 255, 0.05);
  --radius: 14px;
}

/* ──────────────── GENERAL ──────────────── */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem;
}

/* ──────────────── NAVIGATION ──────────────── */
.nav {
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 0.2);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 999;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.3rem;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
  transition: 0.3s;
}
.nav-links a:hover {
  color: var(--accent2);
}

/* ──────────────── CLASSIC SECTION ──────────────── */
.classic {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  color: #fff;
}
.classic-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 2;
  padding: 0 2rem;
}
.classic-text {
  flex: 1;
  max-width: 650px;
}
.classic h1 {
  font-size: 2.6rem;
  margin: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.classic h3 {
  font-weight: 400;
  color: var(--accent2);
  margin: 0.5rem 0;
}
.classic p {
  max-width: 500px;
  color: var(--muted);
  line-height: 1.6;
}
.classic-buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

/* Avatar */
.classic-avatar {
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.avatar-circle {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #000;
  font-size: 2.5rem;
  box-shadow: 0 6px 25px rgba(187, 0, 255, 0.6);
}

/* ──────────────── BUTTONS ──────────────── */
.btn {
  display: inline-block;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  color: #000;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 0 20px var(--accent);
}
.btn:hover {
  box-shadow: 0 0 40px var(--accent2);
}
.btn.ghost {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent2);
  margin-left: 0.5rem;
}

/* ──────────────── SECTIONS ──────────────── */
.about,
.projects,
.contact {
  margin: 3rem 0;
  padding: 1.5rem;
  background: var(--glass);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
}

/* ──────────────── GRID & CARDS ──────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--card);
  padding: 1.2rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0, 255, 231, 0.2);
  transition: 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 255, 231, 0.4);
}
.card h3 {
  margin-top: 0;
}

/* ──────────────── LINKS ──────────────── */
.link {
  color: var(--accent2);
  text-decoration: none;
  transition: 0.3s;
}
.link:hover {
  text-decoration: underline;
}

/* ──────────────── FORMS ──────────────── */
form input,
form textarea {
  width: 100%;
  padding: 0.8rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--text);
}
form textarea {
  min-height: 120px;
  resize: vertical;
}
form label {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
}
.form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.form-row div {
  flex: 1;
  min-width: 220px;
}

/* ──────────────── MESSAGES ──────────────── */
.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.message {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.message.success {
  background: rgba(0, 176, 255, 0.15);
  color: var(--accent2);
  border-left: 4px solid var(--accent);
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-weight: 500;
}
.message.error {
  background: rgba(255, 50, 50, 0.08);
  color: #ffb3b3;
}

/* ──────────────── FOOTER ──────────────── */
.footer {
  padding: 1.5rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ──────────────── ABOUT SECTION ──────────────── */
.about-card {
  position: relative;
}
.about-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.4rem;
}
.about-card ul {
  list-style: disc;
  padding-left: 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.about-card li {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
}

/* About grid / rows */
.about-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.about-card-full {
  width: 100%;
  margin-bottom: 2rem;
}

/* ──────────────── EXPERIENCE & EDUCATION ──────────────── */
.experience-list,
.personal-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.experience-list li,
.personal-list li {
  line-height: 1.5;
}
.item-date {
  display: inline-block;
  margin-left: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(125, 211, 252, 0.08);
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  margin-top: 0.2rem;
}
.education-item {
  margin-bottom: 1rem;
}
.education-item h4 {
  margin: 0.3rem 0 0.2rem;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
}
.education-item p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
}

/* ──────────────── SKILLS GRID ──────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.skill-category h4 {
  color: var(--accent2);
  font-weight: 600;
  margin-bottom: 0.8rem;
  border-left: 4px solid var(--accent);
  padding-left: 0.6rem;
}
.skill-category ul {
  list-style: disc;
  padding-left: 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ──────────────── LANGUAGES ──────────────── */
.language {
  position: relative;
  margin-bottom: 0.8rem;
  cursor: pointer;
}
.language span {
  display: block;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--accent2);
}
.progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
}
.progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 8px;
  transition: width 1s ease-in-out;
}

/* ──────────────── PROJECTS & LEARNINGS ──────────────── */
.projects-section,
.learning-section {
  margin-top: 1.5rem;
}
.projects-section h4,
.learning-section h4 {
  font-size: 1.2rem;
  color: var(--accent2);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
}
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-left: 0;
  list-style: none;
}
.projects-list li {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.project-name {
  font-weight: 600;
  color: var(--accent2);
}

/* Segmented progress bars */
.project-bar {
  display: flex;
  height: 10px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 0.4rem;
  position: relative;
  gap: 2px;
}
.progress-segment {
  flex: 1;
  height: 100%;
  transition: all 0.3s ease;
  border-radius: 4px;
  position: relative;
}
.progress-segment::after {
  content: "";
  display: block;
  width: 1px;
  height: 100%;
  background: rgba(0,0,0,0.15);
  position: absolute;
  right: 0;
}
.progress-segment[data-status="completed"] {
  background: linear-gradient(90deg, #00ff92, #00bfa5);
}
.progress-segment[data-status="current"] {
  background: linear-gradient(90deg, #00b0ff, #0090d9);
}
.progress-segment[data-status="upcoming"] {
  background: rgba(255,255,255,0.08);
}
.progress-segment:hover {
  filter: brightness(1.2);
}

/* ──────────────── TOOLTIP ──────────────── */
.tooltip {
  position: fixed;
  background: var(--card);
  color: var(--accent2);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: 0 0 10px rgba(0,255,231,0.3);
  z-index: 10000;
}

/* ──────────────── PUBLISHED APPS ──────────────── */
#playstore .card {
  padding: 0.8rem;
  font-size: 0.9rem;
  display: inline-block;
  text-align: center;
  max-width: 200px;
}
#playstore .card .app-icon {
  width: 100px;
  height: 100px;
  object-fit: cover;
  margin: 0 auto 0.5rem;
  border-radius: 8px;
}

/* ──────────────── BACK-TO-TOP ──────────────── */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent2);
  color: var(--bg);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 255, 231, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  z-index: 1000;
}
#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(0, 255, 231, 0.6);
}

/* ──────────────── ANIMATIONS ──────────────── */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 5px var(--accent2); }
  50% { box-shadow: 0 0 20px var(--accent2); }
  100% { box-shadow: 0 0 5px var(--accent2); }
}

/* ──────────────── RESPONSIVE ──────────────── */
@media (max-width: 1024px) {
  .about-card-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .classic-inner {
    flex-direction: column;
    text-align: center;
    padding: 0 1rem;
  }
  .classic-avatar {
    order: -1;
    margin-bottom: 1.5rem;
  }
}
@media (max-width: 768px) {
  .classic-inner {
    flex-direction: column-reverse;
    text-align: center;
  }
  .classic-avatar {
    margin-bottom: 1rem;
  }
  .classic-buttons {
    justify-content: center;
  }
  .about-card-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .classic h1 {
    font-size: 1.9rem;
  }
  .form-row div {
    min-width: 100%;
  }
}
