/* ========== GLOBAL & VARIABLES ========== */
:root {
  --primary: #1a73e8;
  --primary-dark: #0f5ddc;
  --bg-dark: #121212;
  --bg-light: #1f1f1f;
  --text-light: #e0e0e0;
  --text-lighter: #ffffff;
  --text-gray: #888;
  --border-radius: 8px;
  /* --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); */
  --scroll-progress: 0%;
  --transition: all 0.3s ease;
}

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

html {
  font-size: 16px;
}

#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 100vw;
  min-height: 100vh;
  z-index: -2;
  object-fit: cover;
}

#bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  /* 50% dark overlay */
  z-index: -1;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Product Sans', 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 600;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--text-lighter);
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 60px;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.highlight {
  color: var(--primary);
}

/* ========== LAYOUT COMPONENTS ========== */
.main-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  margin: 120px auto 40px;
  padding: 0 20px;
  gap: 50px;
}

.left-content {
  flex: 2;
}

.right-photo {
  flex: 1;
  position: sticky;
  top: 100px;
  display: flex;
  justify-content: center;
}

.right-photo img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: var(--transition);
}

.right-photo img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7);
}

.section {
  padding: 80px 20px;
  max-width: 900px;
  margin: auto;
  animation: fadeIn 0.6s ease-out forwards;
}

.section:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


/* ========== UI COMPONENTS ========== */
.btn {
  display: inline-block;
  background-color: var(--primary);
  color: #fff;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: var(--transition);
  font-weight: 500;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.btn[disabled] {
  background-color: #555;
  cursor: not-allowed;
}

/* Cards */
.project-card {
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.project-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Project Buttons */
.project-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.project-buttons .btn {
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  gap: 8px;
  min-height: 44px;
}

.github-btn {
  background-color: #333;
  color: #fff;
  flex: 1;
}

.github-btn:hover {
  background-color: #24292e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(51, 51, 51, 0.3);
}

.project-btn {
  background-color: var(--primary);
  color: #fff;
  flex: 1;
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin-top: 30px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

label {
  color: var(--text-lighter);
  font-weight: 500;
}

input,
textarea {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  background-color: var(--bg-light);
  color: var(--text-light);
  resize: none;
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

/* ========== CONTENT SECTIONS ========== */
/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Resume Skills */
.resume-skills {
  margin-top: 30px;
  background-color: var(--bg-light);
  padding: 20px;
  border-radius: var(--border-radius);
}

.resume-skills h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.resume-skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.resume-skills-list li {
  display: flex;
}

.resume-skills-list strong {
  color: var(--text-lighter);
  flex-shrink: 0;
  min-width: 210px;
}

/* ========== ENHANCED THREADS (QUOTES) STYLING ========== */
#threads-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.book-card {
  background-color: var(--bg-light);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 280px;
  /* Fixed height for consistency */
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(26, 115, 232, 0.2);
}

.book-preview {
  display: flex;
  align-items: stretch;
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  gap: 20px;
  height: 100%;
  /* Take full height of card */
  min-height: 240px;
  /* Consistent minimum height */
}

.book-preview:hover {
  background-color: rgba(26, 115, 232, 0.05);
}

.book-cover {
  width: 142px;
  /* Slightly smaller to fit better */
  height: 202px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.book-image {
  min-height: 200px;
  max-height: 200px;
  min-width: 140px;
  max-width: 140px;
  /* Consistent image height */
  object-fit: fill;
  border-radius: calc(var(--border-radius) - 1px);
}

.book-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 10px;
  overflow: hidden;
  /* Prevent content overflow */
}

.book-header {
  margin-bottom: 12px;
}

.book-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
  line-height: 1.2;
  /* Limit title to 2 lines */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin: 0;
}

.featured-quote {
  flex: 1;
  font-style: italic;
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 12px 0;
  padding: 12px;
  background: rgba(26, 115, 232, 0.05);
  border-radius: var(--border-radius);
  border-left: 3px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: left;
  overflow: hidden;
}

.book-meta {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.meta-icon {
  font-size: 1rem;
  margin-bottom: 3px;
}

.meta-label {
  font-size: 0.7rem;
  color: var(--text-gray);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.meta-value {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  /* Prevent text wrapping */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-item:first-child {
  /* your styles here */
  min-width: 100px;
}

.meta-item:nth-child(2) {
  /* your styles here */
  min-width: 60px;
}

.expand-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--primary);
  color: white;
  font-size: 1.2rem;
  transition: var(--transition);
  flex-shrink: 0;
}

.book-card.expanded .expand-indicator {
  transform: rotate(360deg);
  background-color: var(--primary-dark);
}

.quotes-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
  padding: 0 20px;
}

.book-card.expanded {
  height: auto;
  /* Allow expansion when opened */
}

.book-card.expanded .quotes-container {
  max-height: none;
  height: auto;
  overflow: visible;
  padding: 0 20px 20px 20px;
}

.quotes-list {
  display: grid;
  gap: 15px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-item {
  background-color: rgba(26, 115, 232, 0.05);
  padding: 15px;
  border-radius: var(--border-radius);
  border-left: 3px solid var(--primary);
  font-style: italic;
  line-height: 1.6;
  position: relative;
  transition: var(--transition);
  display: flex;
  gap: 10px;
}

.quote-item:hover {
  background-color: rgba(26, 115, 232, 0.1);
  transform: translateX(5px);
}

.quote-number {
  color: var(--primary);
  font-weight: 600;
  flex-shrink: 0;
}

.quote-text {
  color: var(--text-light);
  white-space: pre-line;
  flex: 1;
}

/* Loading and error states */
.loading-quotes {
  text-align: center;
  padding: 20px;
  color: var(--text-gray);
}

.error-message {
  color: #ff4444;
  text-align: center;
  padding: 20px;
  background-color: rgba(255, 68, 68, 0.1);
  border-radius: var(--border-radius);
  margin: 10px 0;
}

/* Responsive design */
@media (max-width: 1200px) {
  #threads-container {
    grid-template-columns: 1fr;
    /* Single column on smaller screens */
  }
}

@media (max-width: 768px) {
  .book-preview {
    flex-direction: column;
    min-height: auto;
    height: auto;
  }

  .book-card {
    height: auto;
    /* Allow flexible height on mobile */
  }

  .book-cover {
    width: 100px;
    align-self: center;
  }

  .book-meta {
    flex-direction: column;
    gap: 8px;
  }

  .meta-item {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: auto;
  }
}


/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ========== TYPEWRITER EFFECT ========== */
.typewriter {
  position: absolute;
}

.typewriter-cursor {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 1.2em;
  background: var(--primary);
  animation: blink 3s infinite;
}

.typewriter-cursor.done {
  animation: none;
}

#animated-name {
  display: inline-block;
  padding-left: 4px;
  position: relative;
}

/* Letter Colors */
#animated-name span.t {
  color: #4285F4;
}

/* K - blue */
#animated-name span.i {
  color: #EA4335;
}

/* a - red */
#animated-name span.w {
  color: #FBBC05;
}

/* u - yellow */
#animated-name span.s {
  color: #4285F4;
}

/* s - blue */
#animated-name span.h {
  color: #34A853;
}

/* h - green */
#animated-name span.l {
  color: #4285F4;
}

/* l - blue */
#animated-name span.j {
  color: #FBBC05;
}

/* V - yellow */
#animated-name span.k {
  color: #34A853;
}

/* y - green */
#animated-name span.a {
  color: #4285F4;
}

/* a - blue */
#animated-name span.t2 {
  color: #EA4335;
}

/* s - red */

/* ========== SOCIAL LINKS ========== */
.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-links a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.social-links a:hover {
  color: var(--text-lighter);
  transform: translateY(-2px);
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 30px;
  background-color: var(--bg-light);
  margin-top: 60px;
  font-size: 0.9rem;
  color: var(--text-gray);
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 992px) {
  .book-cover {
    width: 140px;
    /* Slightly smaller to fit better */
    height: 200px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .main-container {
    flex-direction: column;
    gap: 30px;
  }

  .right-photo {
    position: static;
    order: -1;
    margin-bottom: 40px;
  }

  .right-photo img {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 768px) {
  body {
    margin: auto;
    align-items: center;
    align-content: center;
  }

  #bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* 50% dark overlay */
    z-index: -1;
  }

  html {
    font-size: 15px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 10px;
    font-size: 14px;
  }

  .section {
    padding: 60px 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  /* Project buttons responsive */
  .project-buttons {
    flex-direction: column;
    gap: 8px;
  }

  /* Threads responsive adjustments */
  .book-preview {
    flex-direction: column;
    gap: 15px;
  }

  .preview-quote {
    border-left: none;
    border-top: 2px solid var(--primary);
    padding-left: 0;
    padding-top: 15px;
  }

  .expand-indicator {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  .nav-links {
    gap: 8px;
  }

  .section {
    padding: 50px 10px;
  }

  .btn {
    padding: 10px 18px;
    width: 100%;
  }

  /* Threads responsive adjustments */
  .book-preview {
    padding: 15px;
  }

  .book-meta {
    flex-direction: column;
    gap: 5px;
  }

  .quotes-container {
    padding: 0 15px;
  }

  .book-card.expanded .quotes-container {
    padding: 0 15px 15px 15px;
  }
}

/* ========== ACHIEVEMENTS TIMELINE ========== */
#achievements-container {
  margin-top: 40px;
  position: relative;
}

.timeline {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

/* Timeline center line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom,
      var(--primary),
      rgba(26, 115, 232, 0.5),
      var(--primary));
  transform: translateX(-50%);
  border-radius: 3px;
}

.achievement-item {
  position: relative;
  margin-bottom: 50px;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Alternating left and right positioning */
.achievement-item:nth-child(odd) {
  justify-content: flex-start;
}

.achievement-item:nth-child(even) {
  justify-content: flex-end;
}

.achievement-content {
  width: calc(50% - 40px);
  background-color: var(--bg-light);
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;

}

.achievement-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(26, 115, 232, 0.3);
  border-color: var(--primary);
}

/* Timeline connectors */
.achievement-item:nth-child(odd) .achievement-content::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -15px;
  width: 0;
  height: 0;
  border-left: 15px solid var(--bg-light);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  transform: translateY(-50%);
  white-space: pre-line;
}

.achievement-item:nth-child(even) .achievement-content::after {
  content: '';
  position: absolute;
  top: 50%;
  left: -15px;
  width: 0;
  height: 0;
  border-right: 15px solid var(--bg-light);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  transform: translateY(-50%);
  white-space: pre-line;
}

/* Timeline dots */
.achievement-item::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  background-color: var(--primary);
  border: 4px solid var(--bg-dark);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.3);
  transition: var(--transition);
  white-space: pre-line;
}

.achievement-item:hover::before {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 0 6px rgba(26, 115, 232, 0.4);
}

/* Achievement header */
.achievement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 15px;
}

.achievement-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.achievement-title-section {
  flex: 1;
}

.achievement-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
  margin: 0 0 5px 0;
  line-height: 1.3;
}

.achievement-date {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin: 0;
}

/* Star rating */
.achievement-rating {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}

.star {
  font-size: 1.1rem;
  color: #ffd700;
  transition: var(--transition);
}

.star.empty {
  color: rgba(255, 215, 0, 0.3);
}

.achievement-content:hover .star {
  transform: scale(1.1);
}

/* Achievement body */
.achievement-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-bottom: 15px;
  white-space: pre-line;
}

.achievement-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.achievement-category {
  background-color: rgba(26, 115, 232, 0.2);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.achievement-proof {
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

.achievement-proof:hover {
  color: var(--text-lighter);
  transform: translateY(-1px);
}

.achievement-proof .icon {
  width: 16px;
  height: 16px;
}

/* Loading state */
.loading-achievements {
  text-align: center;
  padding: 40px;
  color: var(--text-gray);
  font-size: 1.1rem;
}

/* Error state */
.error-achievements {
  color: #ff4444;
  text-align: center;
  padding: 40px;
  background-color: rgba(255, 68, 68, 0.1);
  border-radius: var(--border-radius);
  margin: 20px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .timeline::before {
    left: 30px;
  }

  .achievement-item {
    justify-content: flex-start !important;
    margin-bottom: 30px;
  }

  .achievement-content {
    width: calc(100% - 80px);
    margin-left: 60px;
  }

  .achievement-item::before {
    left: 30px;
    transform: translateY(-50%);
  }

  .achievement-content::after {
    display: none;
  }

  .achievement-item .achievement-content::after {
    content: '';
    position: absolute;
    top: 30px;
    left: -15px;
    width: 0;
    height: 0;
    border-right: 15px solid var(--bg-light);
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
  }

  .achievement-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .achievement-icon {
    font-size: 1.5rem;
  }

  .achievement-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .timeline::before {
    left: 20px;
  }

  .achievement-item::before {
    left: 20px;
    width: 16px;
    height: 16px;
  }

  .achievement-content {
    width: calc(100% - 60px);
    margin-left: 45px;
    padding: 20px;
  }

  .achievement-title {
    font-size: 1.1rem;
  }

  .achievement-description {
    font-size: 0.9rem;
  }
}


/* Experience Section Styles */
.experience-timeline {
  position: relative;
  padding: 20px 0;
}

.experience-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background-color: var(--primary);
}

.experience-item {
  position: relative;
  margin-bottom: 30px;
  padding-left: 30px;
}

.experience-item::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 1px;
  width: 15px;
  height: 15px;
  background-color: var(--primary);
  border-radius: 50%;
  transform: translateX(-50%);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.experience-header a {
  text-decoration: underline var(--text-light);
}

.experience-header h3 {
  font-size: 1.2rem;
  color: var(--text-lighter);
  margin: 0;
}

.experience-date {
  font-size: 0.9rem;
  color: var(--text-light);
}

.experience-description {
  margin-bottom: 10px;
}

.experience-contributions {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: justify;
}

.experience-contributions li {

  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.experience-contributions li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .experience-timeline::before {
    left: 10px;
  }

  .experience-item {
    padding-left: 40px;
  }

  .experience-item::before {
    left: 10px;
  }
}

@media (max-width: 480px) {
  .experience-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .experience-date {
    font-size: 0.8rem;
  }
}

.skills-acquired {
  margin-top: 10px;
}

.skills-acquired h4 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.skills-acquired ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-acquired li {
  display: inline-block;
  background-color: var(--bg-light);
  padding: 5px 10px;
  border-radius: var(--border-radius);
  margin: 5px;
  font-size: 0.9rem;
}

/* ========== CSS CUSTOM PROPERTIES ========== */


/* ========== ENHANCED NAVBAR STYLES ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, rgba(9, 7, 27, 0.5), rgba(15, 1, 19, 0.5));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.navbar.scrolled {
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(26, 115, 232, 0.3);
}

.navbar.hide {
  transform: translateY(-100%);
}

.navbar.show {
  transform: translateY(0);
}

/* Scroll Progress Indicator */
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), #00d4ff);
  width: var(--scroll-progress, 0%);
  transition: width 0.1s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* ========== BRAND/LOGO ========== */
.nav-brand {
  z-index: 1001;
}

.brand-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition);
}

.brand-text {
  background: #ced7d8;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition);
  font-size: medium;
  margin-left: -20px;
}

.brand-dot {
  margin-left: 2px;
  font-size: medium;
  line-height: 0;
}

.brand-link:hover .brand-text {
  background: var(--text-lighter);
  transform: translateY(-1px);
  background-clip: text;
  -webkit-background-clip: text;
  transition: var(--transition);
}

/* ========== NAVIGATION LINKS ========== */
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px;
  border-radius: 25px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: block;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(26, 115, 232, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  color: var(--text-light);
  background-color: rgba(26, 115, 232, 0.1);
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--text-light);
  background-color: rgba(26, 115, 232, 0.15);
  box-shadow: 0 0 20px rgba(26, 115, 232, 0.3);
}

/* ========== THEME TOGGLE ========== */
.theme-toggle {
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  margin-left: 1rem;
}

.theme-toggle:hover {
  border-color: var(--text-light);
  background-color: rgba(26, 115, 232, 0.1);
  transform: rotate(180deg);
}

.theme-icon {
  font-size: 1.2rem;
  transition: var(--transition);
}

/* ========== MOBILE MENU ========== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
  z-index: 1001;
  gap: 4px;
  background: none;
  border: none;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
  background-color: var(--text-light);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scale(0);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
  background-color: var(--text-light);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 999;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

.mobile-nav-links li {
  margin: 1.5rem 0;
  opacity: 0;
  transform: translateY(30px);
}

.mobile-menu-overlay.active .mobile-nav-links li {
  animation: slideInUp 0.6s forwards;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(1) {
  animation-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(2) {
  animation-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(3) {
  animation-delay: 0.3s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(4) {
  animation-delay: 0.4s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(5) {
  animation-delay: 0.5s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(6) {
  animation-delay: 0.6s;
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(7) {
  animation-delay: 0.7s;
}

.mobile-nav-link {
  text-decoration: none;
  color: var(--text-light);
  font-size: 1.5rem;
  font-weight: 600;
  padding: 1rem 2rem;
  display: block;
  border-radius: 10px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--text-light), #00d4ff);
  border-radius: 10px;
  transition: width 0.3s ease;
  z-index: -1;
}

.mobile-nav-link:hover::before {
  width: 100%;
}

.mobile-nav-link:hover {
  color: white;
  transform: translateX(10px);
}

/* ========== ANIMATIONS ========== */
@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 992px) {
  .nav-links {
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 0.9rem;
    padding: 6px 12px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 15px;
    height: 60px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .theme-toggle {
    width: 35px;
    height: 35px;
    margin-left: 0.5rem;
  }

  .theme-icon {
    font-size: 1rem;
  }

  .brand-link {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 0 10px;
    height: 55px;
  }

  .mobile-nav-link {
    font-size: 1.3rem;
    padding: 0.8rem 1.5rem;
  }

  .brand-link {
    font-size: 1rem;
  }

  .theme-toggle {
    width: 32px;
    height: 32px;
  }

  .hamburger-line {
    width: 22px;
    height: 2px;
  }
}

/* ========== ACCESSIBILITY IMPROVEMENTS ========== */
@media (prefers-reduced-motion: reduce) {

  .navbar,
  .nav-link,
  .theme-toggle,
  .mobile-menu-toggle,
  .mobile-menu-overlay,
  .brand-link {
    transition: none;
    animation: none;
  }

  .brand-dot {
    animation: none;
  }
}

/* Focus states for accessibility */
.nav-link:focus,
.theme-toggle:focus,
.mobile-menu-toggle:focus,
.brand-link:focus {
  outline: 1px solid var(--primary);
  outline-offset: 2px;
}

/* ========== NAVIGATION CONTROLS ========== */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 1001;
}

/* Music Toggle Button */
.music-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(26, 115, 232, 0.1);
  border: 1px solid rgba(26, 115, 232, 0.3);
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.music-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(26, 115, 232, 0.2), transparent);
  transition: left 0.5s ease;
}

.music-toggle:hover::before {
  left: 100%;
}

.music-toggle:hover {
  background: rgba(26, 115, 232, 0.2);
  border-color: rgba(26, 115, 232, 0.5);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.music-toggle:active {
  transform: translateY(0);
}

/* Music toggle states */
.music-toggle.playing {
  background: rgba(26, 115, 232, 0.2);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 20px rgba(26, 115, 232, 0.4);
}

.music-toggle.playing .music-icon {
  animation: musicPulse 2s infinite;
}

.music-icon {
  font-size: 1.1rem;
  transition: var(--transition);
}

.music-text {
  font-size: 0.85rem;
  transition: var(--transition);
}

@keyframes musicPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* ========== RESPONSIVE UPDATES ========== */
@media (max-width: 992px) {
  .music-toggle {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .music-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .nav-controls {
    gap: 0.75rem;
  }

  .music-toggle {
    padding: 6px 10px;
  }

  .music-text {
    display: none;
    /* Hide text on mobile, keep icon only */
  }

  .music-icon {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-controls {
    gap: 0.5rem;
  }

  .music-toggle {
    padding: 5px 8px;
    min-width: 35px;
    justify-content: center;
  }
}

/* Update focus states */
.music-toggle:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ========== EDUCATION SECTION ========== */
.education-timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.education-item {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 25px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    transition: var(--transition);
}

.education-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.15);
    border-color: var(--primary);
}

.education-item:hover::before {
    width: 6px;
}

.education-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.education-icon {
    font-size: 2rem;
    flex-shrink: 0;
    background: rgba(26, 115, 232, 0.1);
    padding: 12px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    justify-content: center;
    transition: var(--transition);
}

.education-item:hover .education-icon {
    background: rgba(26, 115, 232, 0.2);
    transform: scale(1.05);
}

.education-content {
    flex: 1;
    min-width: 0;
}

.education-degree {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.education-institution {
    font-size: 1.1rem;
    color: var(--text-lighter);
    margin-bottom: 4px;
    font-weight: 500;
}

.education-university {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-style: italic;
    margin: 0;
}

.education-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.education-duration {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(26, 115, 232, 0.2);
}

.education-grade {
    background: rgba(52, 168, 83, 0.1);
    color: #34A853;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(52, 168, 83, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .education-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .education-icon {
        align-self: flex-start;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .education-meta {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .education-degree {
        font-size: 1.2rem;
    }
    
    .education-institution {
        font-size: 1rem;
    }
    .brand-text {
      margin-left: 0px;
    }
}

@media (max-width: 480px) {
  
    .brand-text {
      margin-left: 0px;
    }
    .education-item {
        padding: 20px;
    }
    
    .education-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .education-duration,
    .education-grade {
        font-size: 0.8rem;
        padding: 5px 10px;
    }
}





/* ========== CERT SECTION ========== */
.cert-timeline {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 30px;
}

.cert-item {
    background-color: var(--bg-light);
    border-radius: var(--border-radius);
    padding: 25px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.cert-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(45deg, var(--primary), var(--primary-dark));
    transition: var(--transition);
}

.cert-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.15);
    border-color: var(--primary);
}

.cert-item:hover::before {
    width: 6px;
}

.cert-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.cert-icon {
    font-size: 2rem;
    flex-shrink: 0;
    background: rgba(26, 115, 232, 0.1);
    padding: 12px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    padding-bottom: 15px;
    justify-content: center;
    transition: var(--transition);
}

.cert-item:hover .cert-icon {
    background: rgba(26, 115, 232, 0.2);
    transform: scale(1.05);
}

.cert-content {
    flex: 1;
    min-width: 0;
}

.cert-degree {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.2;
}

.cert-institution {
    font-size: 1.1rem;
    color: var(--text-lighter);
    margin-bottom: 4px;
    font-weight: 500;
}

.cert-university {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-style: italic;
    margin: 0;
}

.cert-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.cert-duration {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(26, 115, 232, 0.2);
}

.cert-grade {
    background: rgba(52, 168, 83, 0.1);
    color: #34A853;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(52, 168, 83, 0.2);
}

.cert-grade a {
  color: #34A853; /* match the .cert-grade text color */
  text-decoration: none; /* remove underline */
  font-weight: 600; /* match parent style */
}

.cert-grade a:hover {
    text-decoration: underline; /* optional: show underline on hover */
    }


.cert-content > div[data-share-badge-id] {
  margin-top: 12px;
}




/* Responsive Design */
@media (max-width: 768px) {
    .cert-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .cert-icon {
        align-self: flex-start;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .cert-meta {
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .cert-degree {
        font-size: 1.2rem;
    }
    
    .cert-institution {
        font-size: 1rem;
    }
    .brand-text {
      margin-left: 0px;
    }
}

@media (max-width: 480px) {
  
    .brand-text {
      margin-left: 0px;
    }
    .cert-item {
        padding: 20px;
    }
    
    .cert-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .cert-duration,
    .cert-grade {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

}
