/* ============================================
   components.css — All Component Styles
   ============================================ */

/* ========================
   NAVBAR
   ======================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background-color: rgba(10, 15, 28, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-logo-text {
  font-family: var(--font-accent);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-primary);
  display: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a.active {
  color: var(--text-primary);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ========================
   TIMELINE
   ======================== */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background-color: rgba(6, 182, 212, 0.3);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px;
  margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 20px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: var(--accent-primary);
  z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -7px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -7px;
}

.timeline-date {
  font-family: var(--font-accent);
  font-size: 12px;
  color: var(--accent-primary);
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.timeline-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
}

.timeline-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 12px;
  display: block;
}

.timeline-card ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}

.timeline-card ul li {
  position: relative;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.8;
  padding-left: 16px;
}

.timeline-card ul li::before {
  content: '\25B8';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.timeline-item:nth-child(odd) .timeline-card ul li {
  padding-left: 0;
  padding-right: 16px;
}

.timeline-item:nth-child(odd) .timeline-card ul li::before {
  left: auto;
  right: 0;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.timeline-item:nth-child(odd) .timeline-tags {
  justify-content: flex-end;
}

.timeline-tags span {
  display: inline-block;
  font-size: 10px;
  font-family: var(--font-accent);
  color: var(--accent-primary);
  background-color: rgba(6, 182, 212, 0.15);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}


/* ========================
   SKILL CARDS
   ======================== */
.skill-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.skill-tabs button {
  padding: 10px 20px;
  border-radius: 6px;
  background-color: var(--card-surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.skill-tabs button:hover {
  color: var(--text-primary);
}

.skill-tabs button.active {
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  font-weight: 600;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
  overflow: hidden;
  align-content: start;
}

.skill-card {
  background-color: var(--card-surface);
  border-radius: 10px;
  padding: 20px 16px 16px;
  text-align: center;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(6, 182, 212, 0.3);
}

.skill-card[data-visible="false"] {
  display: none !important;
}

.skill-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-icon img,
.skill-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.skill-name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  line-height: 1.3;
}

.skill-bar {
  height: 4px;
  width: 100%;
  background-color: var(--inset);
  border-radius: 2px;
  margin-top: auto;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 2px;
  width: 0;
  transition: width 1.5s ease;
}

.skill-level-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}


/* ========================
   PROJECT CARDS
   ======================== */
.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.filter-buttons button {
  padding: 10px 20px;
  border-radius: 6px;
  background-color: var(--card-surface);
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.filter-buttons button:hover {
  color: var(--text-primary);
}

.filter-buttons button.active {
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  font-weight: 600;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  align-content: start;
}

.project-card {
  background-color: var(--card-surface);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
}

.project-card[data-visible="false"] {
  display: none !important;
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.08);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 28, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-body {
  padding: 20px;
}

.project-category {
  font-family: var(--font-accent);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--accent-primary);
  letter-spacing: 2px;
}

.project-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin: 8px 0;
}

.project-body p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.project-tags span {
  display: inline-block;
  font-size: 10px;
  font-family: var(--font-accent);
  color: var(--accent-primary);
  background-color: rgba(6, 182, 212, 0.15);
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}


/* ========================
   CERTIFICATION CARDS
   ======================== */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.cert-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
}

.cert-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.cert-card .cert-issuer {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.cert-card .cert-detail {
  font-size: 13px;
  color: var(--text-secondary);
}

.cert-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cert-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 10px;
  color: var(--accent-primary);
}

.cert-icon svg {
  width: 22px;
  height: 22px;
}

.cert-body {
  flex: 1;
}

.cert-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.badge {
  display: inline-block;
  padding: 3px 10px;
  font-family: var(--font-accent);
  font-size: 10px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.badge-gold {
  background: rgba(234, 179, 8, 0.15);
  color: #eab308;
}

.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-primary);
}

.badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-secondary);
}


/* ========================
   EDUCATION CARDS
   ======================== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.edu-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  background-color: var(--accent-primary);
  color: var(--bg-primary);
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
}

.edu-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.edu-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.edu-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 182, 212, 0.1);
  border-radius: 12px;
  color: var(--accent-primary);
}

.edu-icon svg {
  width: 24px;
  height: 24px;
}

.edu-body {
  flex: 1;
}

.edu-header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.edu-institution {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.edu-gpa {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.edu-gpa strong {
  color: var(--accent-primary);
  font-family: var(--font-accent);
}

.edu-ranking {
  font-size: 13px;
  color: var(--accent-primary);
  font-weight: 500;
  margin-bottom: 4px;
}

.edu-detail {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}


/* ========================
   CONTACT SECTION
   ======================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--accent-primary);
}

.contact-link svg,
.contact-link i {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--glass-border);
  padding: 12px 0;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}


/* ========================
   FOOTER
   ======================== */
.footer {
  background-color: var(--bg-secondary);
  padding: 48px 0 24px;
  border-top: 1px solid var(--glass-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}

.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 300px;
}

.footer-links h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links ul li a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}


/* ========================
   BACK TO TOP
   ======================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 999;
  font-size: 18px;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}
