:root {
  --primary: #1a365d;
  --secondary: #2563eb;
  --accent: #3b82f6;
  --success: #10b981;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --border: #e5e7eb;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Header ===== */
header {
  background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.profile-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 1.5rem;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  line-height: 1.7;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  margin: 0.25rem;
  font-size: 0.9rem;
  backdrop-filter: blur(10px);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn {
  padding: 0.875rem 2rem;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-secondary:hover {
  background: white;
  color: var(--primary);
}

.btn-secondary.btn-alt {
  color: var(--secondary);
  border-color: var(--secondary);
}

.btn-secondary.btn-alt:hover {
  background: var(--secondary);
  color: white;
}

/* ===== Sections ===== */
section {
  padding: 4rem 0;
}

section:nth-child(even) {
  background: var(--bg-alt);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
  position: relative;
  padding-bottom: 0.75rem;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

/* ===== Journey Section ===== */
.journey-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.journey-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--secondary);
}

.journey-card h3 {
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.journey-card .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* ===== Learning Path ===== */
.learning-current {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 2rem;
}

.learning-current h3 {
  color: #92400e;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.learning-track {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  margin-top: 1rem;
}

.learning-track-title {
  color: var(--primary);
  margin-bottom: 1rem;
}

.learning-next-steps {
  margin-top: 1rem;
  color: #78350f;
}

.course-list {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.course-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-alt);
  border-radius: 0.5rem;
}

.course-check {
  color: var(--success);
  font-size: 1.5rem;
}

.course-info h4 {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.course-meta {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-category {
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
}

.skill-category h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-tag {
  display: inline-block;
  background: var(--bg-alt);
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  margin: 0.25rem;
  font-size: 0.9rem;
  color: var(--text);
  border: 1px solid var(--border);
}

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.project-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 10;
}

.badge-live {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  padding: 0.35rem 0.85rem;
  border-radius: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
  white-space: nowrap;
}

.project-header {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  color: white;
  padding: 1.5rem 1.5rem 1.5rem 1.5rem;
  min-height: 4.5rem;
}

.project-header h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  padding-right: 4rem;
}

.project-body {
  padding: 1.5rem;
}

.project-description {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tech-badge {
  background: var(--bg-alt);
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  font-size: 0.8rem;
  color: var(--secondary);
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.project-link {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.project-link:hover {
  text-decoration: underline;
}

.project-link-primary {
  color: var(--success);
  font-weight: 700;
}

.projects-footer {
  text-align: center;
  margin-top: 2rem;
}

/* ===== Certificates ===== */
.certificates-intro {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.certificates-recent {
  margin-bottom: 2rem;
}

.certificates-section-title {
  color: var(--primary);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.certificate-card {
  background: white;
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.cert-header {
  background: var(--bg-alt);
  padding: 3rem 1rem;
  text-align: center;
  font-size: 3rem;
}

.cert-body {
  padding: 1.25rem;
}

.cert-title {
  color: var(--primary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.cert-provider {
  color: var(--secondary);
  font-weight: 600;
  font-size: 0.9rem;
}

.cert-date {
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.cert-tech {
  background: var(--bg-alt);
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin: 0.75rem 0;
  font-size: 0.85rem;
  line-height: 1.5;
}

.cert-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.cert-links a {
  color: var(--secondary);
  text-decoration: none;
}

.cert-links a:hover {
  text-decoration: underline;
}

/* Certificates Archive (Collapsible) */
.certificates-archive {
  margin-top: 2rem;
  border: 2px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: white;
}

.certificates-archive-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  list-style: none;
  user-select: none;
}

.certificates-archive-toggle::-webkit-details-marker {
  display: none;
}

.certificates-archive-toggle:hover {
  color: var(--secondary);
}

.toggle-icon {
  transition: transform 0.3s ease;
}

.certificates-archive[open] .toggle-icon {
  transform: rotate(180deg);
}

.certificates-archive .certificates-grid {
  margin-top: 1.5rem;
}

/* ===== CTA Section (Open to Opportunities) ===== */
.cta-section {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  text-align: center;
}

.cta-section .section-title {
  text-align: center;
}

.cta-section .section-title::after {
  margin-left: auto;
  margin-right: auto;
}

.opportunity-description {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.availability-info {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.status-badge {
  background: white;
  color: var(--success);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
  border: 2px solid var(--success);
}

/* ===== Footer ===== */
footer {
  background: var(--primary);
  color: white;
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}

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

.footer-tagline {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-top: 1rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .container {
    padding: 0 1rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .availability-info {
    flex-direction: column;
    align-items: center;
  }
}
