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

html {
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
}

body {
  transition: background-color 0.3s ease, color 0.3s ease;
  background-color: var(--bg);
  color: var(--text);
  padding: 0;
  margin: 0;
}

/* Theme Switch */
:root {
  --bg: #111827;
  --text: #f9fafb;
  --secondary: #9ca3af;
  --accent: #60a5fa;
  --card-bg: #1f2937;
  --border: #374151;

  /* fonts */
  --font-profile__name: 'Segoe Script', 'Snell Roundhand', 'Apple Chancery',
    'Lucida Handwriting', 'Bradley Hand', 'Brush Script MT',
    'Comic Sans MS', 'URW Chancery L', cursive;
}



a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main.profile {
  max-width: 90%;
  margin: 0 auto;
  padding: 2rem 1rem;
}



/* Font improvements: use modern, highly readable system font stack */
html, body {
  font-family: 'Inter', 'Segoe UI', 'Roboto', 'San Francisco', 'SF Pro Display', 'Arial', 'Helvetica Neue', Arial, sans-serif;
  font-size: 19px;
  line-height: 1.7;
  background: transparent;
  color: #f3f3f3;
}

.profile {
  background: rgba(20, 22, 34, 0.12);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(0,0,0,0.18);
  padding: 1.2rem 3.5rem 4.5rem 3.5rem;
  margin: 6rem auto 3.5rem auto;
  max-width: 800px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.22);
}



.profile__hero {
  display: flex;
  align-items: center;
  gap: 4.5rem;
  margin-bottom: 3.5rem;
  margin-top: 2.5rem;
}

.profile__hero-image img {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0;
  opacity: 0.7;
  mask-image: radial-gradient(circle, white 60%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle, white 60%, transparent 100%);
  box-shadow: 0 2px 16px 0 rgba(0,0,0,0.18);
  transition: all 0.3s ease;
  cursor: pointer;
}

.profile__hero-image:hover img {
  opacity: 1;
  transform: scale(1.05);
  box-shadow: 0 8px 32px 0 rgba(255, 233, 167, 0.3), 0 2px 16px 0 rgba(0,0,0,0.25);
  filter: brightness(1.1) contrast(1.05);
}

.profile__hero-text {
  flex: 1;
  background: rgba(30, 32, 48, 0.08);
  border-radius: 14px;
  padding: 0.5rem 1.5rem 0.5rem 1.5rem;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.10);
  text-shadow: 0 2px 8px rgba(0,0,0,0.22);
}

.profile__hero-name {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 0.2rem 0;
  color: #ffe9a7;
  letter-spacing: 1px;
}



.profile__hero-title {
  font-size: 1.2rem;
  font-weight: 400;
  color: #b3e0ff;
  margin: 0 0 0.3rem 0;
}

.profile__hero-subtitle {
  font-size: 1rem;
  color: #bdbdbd;
  margin: 0 0 0.5rem 0;
  font-style: italic;
  opacity: 0.9;
}



.profile__hero-tagline {
  font-size: 1rem;
  color: #bdbdbd;
  margin-bottom: 0.2rem;
}

/* Contact links in hero section */
.profile__hero-text .profile__contact-links {
  margin-top: 1.2rem;
  gap: 0.8rem;
}

.profile__hero-text .profile__contact-link {
  font-size: 0.9rem;
  padding: 0.4rem 0.8rem;
  background: rgba(255, 233, 167, 0.08);
  border: 1px solid rgba(255, 233, 167, 0.15);
  border-radius: 6px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.profile__hero-text .profile__contact-link:hover {
  background: rgba(255, 233, 167, 0.15);
  border-color: rgba(255, 233, 167, 0.3);
  transform: translateY(-1px);
}

.profile__hero-text .profile__contact-link .icon {
  font-size: 0.9em;
  margin-right: 0.3rem;
}

/* Hero Stats */
.profile__hero-stats {
  display: flex;
  gap: 2rem;
  margin: 1.5rem 0;
  padding: 1rem 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 700;
  color: #ffe9a7;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.85rem;
  color: #bdbdbd;
  font-weight: 500;
}

@media (max-width: 600px) {
  .profile__hero-stats {
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
}

/* Section backgrounds and borders for extra softness */
.profile__section {
  background: linear-gradient(120deg, rgba(30,32,48,0.65) 0%, rgba(40,44,60,0.55) 100%);
  border-radius: 20px;
  box-shadow: 0 2px 18px 0 rgba(0,0,0,0.13);
  padding: 2.7rem 2.7rem 2.1rem 2.7rem;
  margin-bottom: 3.2rem;
  border: 1.5px solid rgba(255,255,255,0.06);
  text-shadow: 0 2px 8px rgba(0,0,0,0.13);
}


@media (max-width: 800px) {
  .profile__section {
    padding: 1.3rem 0.7rem 1.3rem 0.7rem;
  }
}

/* Headings for clarity */
.profile__section h3 {
  color: #b3e0ff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.7rem;
  letter-spacing: 0.7px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.13);
}

.profile__section--about p {
  color: #e0e0e0;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.profile__key-achievements {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 233, 167, 0.1);
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #f3f3f3;
  font-size: 0.95rem;
  line-height: 1.5;
}

.achievement-icon {
  font-size: 1.2rem;
  opacity: 0.9;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .profile__key-achievements {
    gap: 0.8rem;
  }
  
  .achievement-item {
    font-size: 0.9rem;
  }
}

/* Section icon */
.section-icon {
  font-size: 1.7rem;
  margin-right: 0.7rem;
  vertical-align: middle;
  opacity: 0.92;
}

/* Technical Skills as definition list */
.profile__skills-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.2rem 3.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (max-width: 700px) {
  .profile__skills-list {
    grid-template-columns: 1fr;
    gap: 1.5rem 0;
  }
}
.profile__skill-category {
  margin-bottom: 2.1rem;
}
.profile__skills-list dt {
  font-weight: 700;
  color: #ffe9a7;
  font-size: 1.18rem;
  margin-bottom: 0.3rem;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.13);
}
.profile__skills-list dd {
  margin: 0 0 0.2rem 0;
  color: #f3f3f3;
  font-size: 1.05rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

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

.project-card {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(30,32,48,0.15) 100%);
  border-radius: 16px;
  padding: 1.8rem;
  color: #e0e0e0;
  box-shadow: 0 4px 20px 0 rgba(0,0,0,0.15);
  border: 1.5px solid rgba(255,255,255,0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ffe9a7, #b3e0ff);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px 0 rgba(0,0,0,0.25);
  border-color: rgba(255, 233, 167, 0.3);
}

.project-card.featured {
  border-color: rgba(255, 233, 167, 0.4);
  background: linear-gradient(135deg, rgba(255,233,167,0.05) 0%, rgba(30,32,48,0.2) 100%);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-icon {
  font-size: 2.5rem;
  opacity: 0.9;
}

.project-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  background: rgba(255, 233, 167, 0.15);
  color: #ffe9a7;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(255, 233, 167, 0.2);
}

.project-card h4 {
  color: #ffe9a7;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.8rem 0;
  letter-spacing: 0.02em;
}

.project-card p {
  color: #f3f3f3;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

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

.tech-tag {
  background: rgba(179, 224, 255, 0.1);
  color: #b3e0ff;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(179, 224, 255, 0.2);
}

.project-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #ffe9a7;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(255, 233, 167, 0.1);
  border: 1px solid rgba(255, 233, 167, 0.2);
  transition: all 0.2s ease;
}

.project-link:hover {
  background: rgba(255, 233, 167, 0.2);
  border-color: rgba(255, 233, 167, 0.4);
  transform: translateY(-2px);
}

.project-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-card {
    padding: 1.5rem;
  }
}

.profile__contact-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.profile__contact-link {
  color: #ffe9a7;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.profile__contact-link:hover {
  color: #b3e0ff;
}

.profile__contact-link .icon {
  font-size: 1.3em;
  vertical-align: middle;
}

/* Contact CTA */
.contact-cta {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

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

.cta-button:hover::before {
  left: 100%;
}

.cta-button.primary {
  background: linear-gradient(135deg, #ffe9a7, #ffd700);
  color: #1a1a1a;
  box-shadow: 0 4px 20px rgba(255, 233, 167, 0.3);
}

.cta-button.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 233, 167, 0.4);
}

.cta-button.secondary {
  background: transparent;
  color: #ffe9a7;
  border-color: #ffe9a7;
  box-shadow: 0 4px 20px rgba(255, 233, 167, 0.1);
}

.cta-button.secondary:hover {
  background: rgba(255, 233, 167, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 233, 167, 0.2);
}

@media (max-width: 600px) {
  .contact-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .cta-button {
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .profile__hero {
    padding: 1.5rem;
  }

  .profile__hero-text h1 {
    font-size: 2rem;
  }

  .profile__hero-text h2 {
    font-size: 1.25rem;
  }

  .theme-toggle {
    font-size: 0.875rem;
    padding: 0.4rem 0.8rem;
  }
}

@media (max-width: 800px) {
  .profile {
    padding: 0.5rem 0.5rem 2.5rem 0.5rem;
    max-width: 98vw;
    margin: 3.5rem auto 1.5rem auto;
  }
  .profile__hero {
    flex-direction: column;
    gap: 2.2rem;
    align-items: flex-start;
    margin-top: 1.2rem;
  }
  .profile__hero-image img {
    width: 180px;
    height: 180px;
  }
  .profile__section {
    padding: 1.1rem 0.7rem 1.1rem 0.7rem;
  }
}

#universe-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  display: block;
  pointer-events: none;
  background: radial-gradient(ellipse at bottom, #1b2735 0%, #090a0f 100%);
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow-x: hidden;
}

.profile, .profile__hero, .profile__section, .theme-toggle {
  position: relative;
  z-index: 1;
}

.profile__skills-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
  gap: 2.2rem 2.2rem;
  justify-items: center;
  align-items: center;
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
}
.profile__skill-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 12px;
  padding: 0.7rem 0.7rem 0.3rem 0.7rem;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
  transition: transform 0.13s, box-shadow 0.13s;
}
.profile__skill-logo:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px 0 rgba(0,0,0,0.18);
}
.profile__skill-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.3rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.10));
}
@media (max-width: 700px) {
  .profile__skills-logos-grid {
    grid-template-columns: repeat(auto-fit, minmax(48px, 1fr));
    gap: 1.2rem 1.2rem;
  }
  .profile__skill-logo img {
    width: 32px;
    height: 32px;
  }
}