/* ===== Enhanced Global Styles ===== */
:root {
  /* Color Variables */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --blue-500: #3b82f6;
  --blue-400: #60a5fa;
  --purple-600: #9333ea;
  --purple-500: #a855f7;
  --green-500: #22c55e;
  --green-400: #4ade80;
  --orange-500: #f97316;
  --orange-400: #fb923c;
  --cyan-500: #06b6d4;
  --pink-500: #ec4899;
  --emerald-500: #10b981;

  /* Enlarged Typography Scale */
  --text-xxs: 0.8125rem;  /* 13px (was 11px) */
  --text-xs: 0.875rem;    /* 14px (was 12px) */
  --text-sm: 1rem;        /* 16px (was 14px) */
  --text-base: 1.125rem;  /* 18px (was 16px) */
  --text-md: 1.375rem;    /* 22px (was 18px) */
  --text-lg: 1.5rem;      /* 24px (was 20px) */
  --text-xl: 1.75rem;     /* 28px (was 24px) */
  --text-2xl: 2rem;       /* 32px (was 28px) */
  --text-3xl: 2.25rem;    /* 36px (was 32px) */
  --text-4xl: 2.5rem;     /* 40px (was 36px) */

  /* Spacing */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--slate-900), var(--gray-900), var(--slate-800));
  color: white;
  padding: 1.5rem 1rem;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  font-size: var(--text-base);
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 2rem;
  flex: 1;
}

/* ===== Layout Styles ===== */
.grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-sm);
  min-height: 80vh;
  align-items: start;
  grid-template-rows: auto 1fr;
}

.content-container {
  background-color: rgba(31, 41, 55, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(55, 65, 81, 0.5);
  border-radius: 1rem;
  padding: var(--space-lg);
  min-height: auto;
  height: auto;
}

@media (min-width: 1024px) {
  .grid-layout {
    grid-template-columns: 1fr 2fr;
    gap: var(--space-md);
    min-height: 85vh;
  }
  
  .profile-column {
    position: sticky;
    top: var(--space-sm);
    height: auto;
    align-self: stretch;
  }
}

/* ===== Profile Card ===== */
.profile-card {
  background: rgba(31, 41, 55, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(55, 65, 81, 0.5);
  border-radius: 1rem;
  padding: var(--space-lg);
  height: fit-content;
  margin-bottom: var(--space-lg);
  position: sticky;
  top: 1rem;
  transition: height 0.3s ease;
}

.profile-image {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.profile-image img {
  width: 12rem;
  height: 12rem;
  border-radius: 55%;
  object-fit: cover;
}

.avatar {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid rgba(59, 130, 246, 0.3);
  background: linear-gradient(to bottom right, var(--blue-500), var(--purple-600));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--text-2xl);
  font-weight: bold;
}

.profile-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.profile-header h1 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-2xs);
}

.profile-header p {
  color: var(--gray-400);
  font-size: var(--text-sm);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--gray-300);
}

.contact-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-label {
  font-size: var(--text-xs);
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-value {
  font-size: var(--text-sm);
}

.social-links {
  display: flex;
  gap: var(--space-xs);
  justify-content: center;
}

.social-link {
  width: 3rem;
  height: 3rem;
  background: rgb(223, 220, 220);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(175, 118, 228, 0.2);
}

.social-link i {
  color: var(--gray-400);
  width: 1.25rem;
  height: 1.25rem;
  transition: color 0.3s ease;
}

.social-link:hover i {
  color: var(--blue-400);
}

/* ===== Navigation ===== */
.navigation {
  background-color: rgba(31, 41, 55, 0.5);
  backdrop-filter: blur(4px);
  border-radius: 1rem;
  border: 1px solid rgba(55, 65, 81, 0.5);
  padding: var(--space-sm) var(--space-xs);
  margin-bottom: var(--space-md);
}

.tabs-container {
  display: flex;
  gap: var(--space-2xs);
}

.tab-button {
  padding: var(--space-xs) var(--space-md);
  border-radius: 0.75rem;
  font-size: var(--text-base);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.tab-button.active {
  background: linear-gradient(to right, var(--blue-500), var(--purple-600));
  color: white;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tab-button.inactive {
  background: transparent;
  color: var(--gray-400);
}

.tab-button.inactive:hover {
  color: white;
  background-color: rgba(55, 65, 81, 0.5);
}

/* ===== About Section ===== */
.about-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.section-header {
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-sm);
}

.section-divider {
  width: 3rem;
  height: 0.25rem;
  background: linear-gradient(to right, var(--blue-500), var(--purple-600));
  border-radius: 9999px;
  margin-bottom: var(--space-md);
}

.about-content {
  color: var(--gray-300);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.about-content p {
  line-height: 1.6;
  font-size: var(--text-base);
}

.action-buttons {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: 0.375rem;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(to right, var(--blue-500), var(--purple-600));
  color: white;
  border: none;
}

.btn-primary:hover {
  background: linear-gradient(to right, var(--blue-600), var(--purple-700));
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gray-600);
  color: var(--gray-300);
}

.btn-outline:hover {
  background-color: var(--gray-700);
  color: white;
}

.btn-icon {
  width: 1rem;
  height: 1rem;
  margin-right: var(--space-2xs);
}

/* ===== Skills Section ===== */
/* ===== Skills Section ===== */
.skills-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.skills-grid-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.skills-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.skill-item {
  background-color: rgba(31, 41, 55, 0.4);
  border: 1px solid rgba(55, 65, 81, 0.5);
  border-radius: 0.75rem;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.skill-item:hover {
  border-color: rgba(75, 85, 99, 0.5);
  transform: translateY(-2px);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.skill-name {
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
}

.skill-percent {
  color: var(--blue-400);
  font-size: var(--text-xs);
  font-weight: 500;
}

.skill-progress-container {
  height: 6px;
  background-color: var(--gray-800);
  border-radius: 9999px;
  overflow: hidden;
}

.skill-progress-bar {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.5s ease-in-out;
  background: linear-gradient(to right, var(--blue-500), var(--purple-600));
}

/* Section Divider */
.section-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(55, 65, 81, 0.5);
  margin: 1.5rem 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .skills-row {
    grid-template-columns: 1fr;
  }
  
  .skill-name {
    font-size: var(--text-xxs);
  }
}

/* ===== Resume Section ===== */
.resume-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.resume-category {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-top: 2rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}

.category-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.category-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: white;
}

.timeline {
  padding-left: 2.75rem;
}

.timeline-item {
  border-left: 2px solid var(--gray-700);
  padding-left: var(--space-md);
  padding-bottom: var(--space-md);
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-2xs);
}

.timeline-position {
  font-size: var(--text-md);
  font-weight: 500;
  color: white;
}

.timeline-date {
  font-size: var(--text-sm);
  padding: var(--space-2xs) var(--space-xs);
  border-radius: 9999px;
}

.timeline-date.blue {
  color: var(--blue-400);
  background-color: rgba(59, 130, 246, 0.1);
}

.timeline-date.green {
  color: var(--green-400);
  background-color: rgba(34, 197, 94, 0.1);
}

.timeline-date.purple {
  color: var(--purple-400);
  background-color: rgba(168, 85, 247, 0.1);
}

.timeline-company {
  color: var(--blue-400);
  margin-bottom: var(--space-2xs);
  font-size: var(--text-sm);
}

.timeline-company.green {
  color: var(--green-400);
}

.timeline-company.purple {
  color: var(--purple-400);
}

.timeline-description {
  color: var(--gray-300);
  font-size: var(--text-base);
  line-height: 1.6;
}

.subcategory {
  margin-top: var(--space-md);
}

.subcategory-title {
  font-size: var(--text-base);
  font-weight: 500;
  color: white;
  margin-bottom: var(--space-sm);
}

/* ===== Projects Section ===== */
.projects-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.project-card {
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(55, 65, 81, 0.5);
  border-radius: 0.75rem;
  padding: var(--space-md);
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: rgba(75, 85, 99, 0.5);
  transform: translateY(-0.25rem);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-sm);
}

.project-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.project-icon.blue {
  background: linear-gradient(to right, var(--blue-500), var(--cyan-500));
}

.project-icon.green {
  background: linear-gradient(to right, var(--green-500), var(--emerald-500));
}

.project-icon.purple {
  background: linear-gradient(to right, var(--purple-500), var(--pink-500));
}

.project-actions {
  display: flex;
  gap: var(--space-2xs);
}

.project-action {
  width: 2rem;
  height: 2rem;
  background-color: var(--gray-800);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.project-action:hover {
  background-color: var(--gray-700);
}

.project-action i {
  color: var(--gray-400);
  width: 1rem;
  height: 1rem;
  transition: color 0.3s ease;
}

.project-action:hover i {
  color: white;
}

.project-title {
  font-size: var(--text-md);
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-2xs);
}

.project-description {
  color: var(--gray-300);
  font-size: var(--text-base);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs);
}

.tech-tag {
  padding: var(--space-2xs) var(--space-xs);
  background-color: rgba(31, 41, 55, 0.5);
  color: var(--gray-300);
  font-size: var(--text-xs);
  border-radius: 9999px;
  border: 1px solid rgba(55, 65, 81, 0.5);
}

.opensource-card {
  background: rgba(17, 24, 39, 0.3);
  border: 1px solid rgba(55, 65, 81, 0.3);
  border-radius: 0.75rem;
  padding: var(--space-md);
}

.opensource-title {
  font-size: var(--text-md);
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-sm);
}

.opensource-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .opensource-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.opensource-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.opensource-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opensource-icon.orange {
  background-color: rgba(249, 115, 22, 0.2);
}

.opensource-icon.blue {
  background-color: rgba(59, 130, 246, 0.2);
}

.opensource-name {
  font-size: var(--text-sm);
  font-weight: 500;
  color: white;
}

.opensource-detail {
  font-size: var(--text-xs);
  color: var(--gray-400);
}

/* ===== Contact Section ===== */
.contact-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-info h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-sm);
}

.contact-info p {
  color: var(--gray-300);
  line-height: 1.6;
  font-size: var(--text-base);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon.blue {
  background-color: rgba(59, 130, 246, 0.2);
}

.contact-icon.green {
  background-color: rgba(34, 197, 94, 0.2);
}

.contact-icon.purple {
  background-color: rgba(168, 85, 247, 0.2);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
}

.contact-details p:first-child {
  font-weight: 500;
  color: white;
  font-size: var(--text-sm);
}

.contact-details p:last-child {
  color: var(--gray-300);
  font-size: var(--text-xs);
}

.availability-card {
  background-color: rgba(17, 24, 39, 0.5);
  border: 1px solid rgba(55, 65, 81, 0.5);
  border-radius: 0.75rem;
  padding: var(--space-md);
  margin-top: var(--space-sm);
}

.availability-card h4 {
  font-weight: 500;
  color: white;
  margin-bottom: var(--space-xs);
  font-size: var(--text-base);
}

.availability-item {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  margin-bottom: var(--space-2xs);
}

.availability-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
}

.availability-dot.green {
  background-color: var(--green-400);
}

.availability-dot.blue {
  background-color: var(--blue-400);
}

.availability-dot.red {
  background-color: rgb(246, 6, 6);
}

.availability-text {
  color: var(--gray-300);
  font-size: var(--text-sm);
}

/* Contact Form */
.contact-form-container {
  background-color: rgba(17, 24, 39, 0.3);
  border: 1px solid rgba(55, 65, 81, 0.3);
  border-radius: 0.75rem;
  padding: var(--space-md);
}

.form-header {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.form-header i {
  color: var(--blue-400);
  width: 1.25rem;
  height: 1.25rem;
}

.form-header h3 {
  font-size: var(--text-md);
  font-weight: 600;
  color: white;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

@media (min-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.form-input {
  width: 100%;
  padding: var(--space-xs) var(--space-sm);
  background-color: rgba(31, 41, 55, 0.5);
  border: 1px solid var(--gray-700);
  border-radius: 0.375rem;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--blue-500);
}

.form-input::placeholder {
  color: var(--gray-400);
}

.form-textarea {
  width: 100%;
  min-height: 8rem;
  padding: var(--space-xs) var(--space-sm);
  background-color: rgba(31, 41, 55, 0.5);
  border: 1px solid var(--gray-700);
  border-radius: 0.375rem;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: var(--text-sm);
  resize: none;
  transition: border-color 0.3s ease;
}

.form-textarea:focus {
  outline: none;
  border-color: var(--blue-500);
}

.form-textarea::placeholder {
  color: var(--gray-400);
}

.submit-btn {
  width: 100%;
  padding: var(--space-xs);
  background: linear-gradient(to right, var(--blue-500), var(--purple-600));
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  font-size: var(--text-sm);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xs);
}

.submit-btn:hover {
  background: linear-gradient(to right, var(--blue-600), var(--purple-700));
  transform: translateY(-1px);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  background-color: var(--gray-800);
  border: 1px solid var(--gray-700);
  border-radius: 0.5rem;
  padding: var(--space-sm);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 100;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-title {
  font-weight: 600;
  color: white;
  margin-bottom: var(--space-2xs);
  font-size: var(--text-base);
}

.toast-description {
  color: var(--gray-300);
  font-size: var(--text-sm);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  :root {
    --text-base: 1rem; /* Slightly reduce base size on mobile */
    --text-md: 1.25rem;
  }
  
  .profile-header h1 {
    font-size: var(--text-xl);
  }
  
  .section-header h2 {
    font-size: var(--text-2xl);
  }
}
