@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS VARIABLES FOR THEMING */
:root {
  /* Dark Theme (Default) */
  --bg-primary: #0F0F10;
  --bg-secondary: #0d1117;
  --bg-tertiary: #161b22;
  --text-primary: #c9d1d9;
  --text-secondary: #ffffff;
  --accent-color: #ea5900;
  --accent-hover: #6b7ff0;
  --border-color: #30363d;
  --shadow: rgba(0, 0, 0, 0.3);
  --modal-bg: rgba(0, 0, 0, 0.8);
  --hover-shadow: rgba(0, 0, 0, 0.4);
  --button-secondary: #c9d1d9;
  --button-secondary-hover: #a1a8b0;
  --button-secondary-text: #161b22;
  --form-cancel-bg: #30363d;
  --form-cancel-hover: #484f58;
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #edeeef;
  --bg-tertiary: #ffffff;
  --text-primary: #24292f;
  --text-secondary: #24292f;
  --accent-color: #ea5900;
  --accent-hover: #d1000a;
  --border-color: #d0d7de;
  --shadow: rgba(0, 0, 0, 0.08);
  --modal-bg: rgba(255, 255, 255, 0.95);
  --hover-shadow: rgba(0, 0, 0, 0.15);
  --button-secondary: #24292f;
  --button-secondary-hover: #1c2128;
  --button-secondary-text: #ffffff;
  --form-cancel-bg: #f6f8fa;
  --form-cancel-hover: #e1e4e8;
}

/* THEME TOGGLE BUTTON */
.theme-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1001;
  background-color: var(--bg-secondary);
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  cursor: pointer;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow);
}

.theme-toggle:hover {
  transform: scale(1.1);
  background-color: var(--accent-color);
  color: var(--bg-secondary);
}

/* LANGUAGE TOGGLE BUTTON */
.language-toggle {
  position: fixed;
  top: 6rem; /* Move it further down to avoid overlap */
  right: 0.4rem; /* Move it slightly to the left so the "|" centers with theme toggle */
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background-color: transparent;
  border: none;
  border-radius: 0;
  padding: 0.5rem;
  box-shadow: none;
  transition: all 0.3s ease;
}

.lang-option {
  cursor: pointer;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.3rem 0.5rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  background-color: transparent;
}

.lang-option.active {
  color: var(--accent-color);
  background-color: var(--bg-tertiary);
}

.lang-option:hover {
  color: var(--accent-color);
  background-color: var(--bg-tertiary);
}

.lang-separator {
  color: var(--text-primary);
  font-weight: 300;
  opacity: 0.5;
  margin: 0 0.2rem;
}



/* GLOBAL STYLES */
html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  padding: 0;
  transition: background-color 0.3s ease, color 0.3s ease;
}

ul {
  list-style: none;
  padding: 0;
}

nav {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 600;
  margin: 0;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}

nav a:hover {
  color: var(--accent-color);
  background-color: var(--bg-tertiary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--hover-shadow);
}

.dashboard {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: max-content max-content max-content;
  gap: 1.2rem;
  padding: 2rem;
}

.highlight {
  color: var(--accent-color);
  font-weight: 600;
}

/* Header icons styling */
h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 2rem;
}

h2 i {
  font-size: 1.2rem;
  color: var(--accent-color);
}

/* Card hover effects */
.profile-card,
.tech-stack-card,
.work-process-card,
.services-card,
.toolbox-card,
.certifications-card,
.testimonials-card,
.stat-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover,
.tech-stack-card:hover,
.work-process-card:hover,
.services-card:hover,
.toolbox-card:hover,
.certifications-card:hover,
.testimonials-card:hover,
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px var(--hover-shadow);
}

/* PROFILE CARD SECTION */
.profile-card {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 0 10px var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  grid-column: 1;
  grid-row: 1;
}

.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  width: 100%;
}

.profile-pic {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100px;
}

.profile-text h2,
.profile-text p {
  margin: 0;
  line-height: 1.2;
  font-weight: 600;
  margin-left: 20px;
}

.profile-text p {
  font-weight: 600;
}

.profile-text h2 {
  color: var(--accent-color);
  font-weight: 900;
  font-size: 2rem;
}

.profile-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  text-align: center;
  align-self: center;
}

.profile-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background-color: var(--bg-tertiary);
  border-radius: 5px;
  font-weight: bold;
  white-space: nowrap;
  min-width: 0;
}

.profile-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-right: 0.5rem;
  min-width: 16px;
}

.profile-buttons {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  margin-top: 1rem;
  align-self: center;
  width: 100%;
  justify-content: center;
}

.profile-card .btn-git,
.profile-card .btn-hire {
  flex: 0 0 auto;
  justify-content: center;
  min-width: 110px;
}

/* TECH STACK CARD SECTION */
.tech-stack-card {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 0 10px var(--shadow);
  grid-column: 2;
  grid-row: 1;
}

.tech-stack-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  text-align: center;
}

.tech-stack-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
  background-color: var(--bg-tertiary);
  border-radius: 5px;
  font-weight: bold;
}

.tech-stack-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 0;
  margin-right: 0.5rem;
}

.tech-stack-card h2 i {
  color: var(--accent-color);
}

/* WORK PROCESS CARD SECTION */
.work-process-card {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 0 10px var(--shadow);
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.work-process-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background-color: var(--bg-tertiary);
  border-radius: 5px;
  margin: 0;
  text-align: left;
}

.work-process-content {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.work-process-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}

.work-process-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-primary);
  text-align: left;
}

.work-process-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-right: 0.5rem;
  align-self: center;
}

.work-process-card h2 i {
  color: var(--accent-color);
}

/* SERVICES CARD SECTION */
.services-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 0 10px var(--shadow);
  align-items: flex-start;
  grid-row: 2;
  grid-column: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  text-align: center;
}

.service-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
  background-color: var(--bg-tertiary);
  border-radius: 5px;
  font-weight: bold;
}

.service-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-bottom: 0;
  margin-right: 0.5rem;
}

.services-card h2 {
  margin-bottom: 2rem;
}

.services-card h2 i {
  color: var(--accent-color);
}

/* STATS CONTAINER SECTION */
.stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.2rem;
  grid-column: 2;
  grid-row: 2;
}

.stat-card {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 0 10px var(--shadow);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem; 
  min-width: 0;
  overflow: hidden;
  min-height: 140px;
}

.stat-number {
  font-size: 6rem;
  font-weight: bold;
  color: var(--text-secondary);
  line-height: 1;
  margin: 0;
}

.stat-label {
  font-size: 1.2rem; 
  color: var(--text-primary);
  font-weight: 500;
  text-align: center;
  line-height: 1.3;
  hyphens: auto;
  word-wrap: break-word;
  margin: 0;
}

/* TOOLBOX CARD SECTION */
.toolbox-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 0 10px var(--shadow);
  align-items: flex-start;
  grid-row: 3;
  grid-column: 1;
  align-self: start;
}

.toolbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  text-align: center;
}

.toolbox-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background-color: var(--bg-tertiary);
  border-radius: 5px;
  font-weight: bold;
}

.toolbox-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-right: 0.5rem;
}

.toolbox-card h2 {
  margin-bottom: 0.5rem;
}

.toolbox-card h2 i {
  color: var(--accent-color);
}

/* CERTIFICATIONS CARD SECTION */
.certifications-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 0 10px var(--shadow);
  align-items: flex-start;
  grid-row: 3;
  grid-column: 2;
  align-self: start;
}

.certifications-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1rem;
  width: 100%;
  text-align: center;
}

.certification-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem;
  background-color: var(--bg-tertiary);
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.certification-item i {
  font-size: 1.5rem;
  color: var(--accent-color);
  margin-right: 0.5rem;
}

.certification-link {
  text-decoration: none;
  color: inherit;
  border-radius: 5px;
  transition: transform 0.2s ease;
}

.certification-link:hover {
  transform: scale(1.05);
}

.certification-link:hover .certification-item {
  background-color: var(--border-color);
  cursor: pointer;
}

.certifications-card h2 {
  margin-bottom: 0.5rem;
}

.certifications-card h2 i {
  color: var(--accent-color);
}

/* TESTIMONIALS CARD SECTION */
.testimonials-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 0 10px var(--shadow);
  align-items: flex-start;
  grid-row: 3;
  grid-column: 3;
  align-self: start;
  height: fit-content;
  margin-top: 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  gap: 1rem;
  width: 100%;
}

.testimonial-item {
  padding: 1rem;
  background-color: var(--bg-tertiary);
  border-radius: 5px;
  border-left: 4px solid var(--accent-color);
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.4;
  font-size: 0.9rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: bold;
  color: var(--accent-color);
}

.testimonial-author i {
  font-size: 1.2rem;
  color: var(--accent-color);
}

.testimonials-card h2 {
  margin-bottom: 0.5rem;
}

.testimonials-card h2 i {
  color: var(--accent-color);
}

/* BUTTON STYLES */
.profile-card button {
  background-color: var(--accent-color);
  color: var(--text-secondary);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
  min-width: 110px;
}

.profile-card button:hover {
  transform: scale(1.05);
  background-color: var(--accent-hover);
}

.profile-card .btn-git {
  color: var(--button-secondary-text);
  background-color: var(--button-secondary);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.profile-card .btn-git:hover {
  transform: scale(1.05);
  background-color: var(--button-secondary-hover);
}

.profile-card .btn-git i {
  color: var(--button-secondary-text);
  font-size: 1.6rem;
}

.profile-card .btn-hire i {
  color: var(--text-secondary);
  font-size: 1.6rem;
}

.btn-link {
  text-decoration: none;
  color: inherit;
}

.btn-link:hover {
  text-decoration: none;
}

/* MODAL STYLES */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--modal-bg);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--bg-secondary);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 30px var(--shadow);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-color);
  margin: 0;
}

.modal-header h2 i {
  font-size: 1.5rem;
}

.close {
  color: var(--text-primary);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover {
  color: var(--accent-color);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: bold;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
}

.form-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-submit {
  background-color: var(--accent-color);
  color: var(--text-secondary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
  flex: 1;
}

.btn-submit:hover {
  transform: scale(1.05);
  background-color: var(--accent-hover);
}

.btn-cancel {
  background-color: var(--form-cancel-bg);
  color: var(--text-primary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
  flex: 1;
}

.btn-cancel:hover {
  transform: scale(1.05);
  background-color: var(--form-cancel-hover);
}

/* MEDIA QUERIES */



/* Tablet (768px - 1024px) */
@media screen and (max-width: 1024px) {
  .dashboard {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(6, max-content);
    gap: 1rem;
    padding: 1.5rem;
  }

  .profile-card {
    grid-column: 1;
    grid-row: 1;
  }

  .tech-stack-card {
    grid-column: 2;
    grid-row: 1;
  }

  .work-process-card {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .services-card {
    grid-column: 1;
    grid-row: 3;
  }

  .stats-container {
    grid-column: 2;
    grid-row: 3;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .toolbox-card {
    grid-column: 1;
    grid-row: 4;
  }

  .certifications-card {
    grid-column: 2;
    grid-row: 4;
  }

  .testimonials-card {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  .stat-card {
    min-height: 140px;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem;
  }

  .stat-number {
    font-size: 4rem;
  }

  .stat-label {
    font-size: 1rem;
    text-align: center;
    word-wrap: break-word;
    line-height: 1.3;
    hyphens: auto;
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-text {
    align-items: center;
    height: auto;
  }

  .profile-pic {
    width: 100px;
    height: 100px;
  }

  .tech-stack-grid,
  .services-grid,
  .toolbox-grid,
  .certifications-grid {
    grid-template-columns: 1fr 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }
}

/* Smartphone (up to 768px) */
@media screen and (max-width: 768px) {
  .theme-toggle {
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .language-toggle {
    top: 4rem; /* Move it below theme toggle on mobile */
    right: 0.6rem; /* Move slightly to the left */
    padding: 0.3rem;
  }
  
  .lang-option {
    font-size: 0.9rem;
    padding: 0.2rem 0.4rem;
  }
  
  .lang-separator {
    margin: 0 0.1rem;
  }

  body {
    font-size: 14px;
  }

  .dashboard {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(8, max-content);
    gap: 1rem;
    padding: 1rem;
  }

  .profile-card,
  .tech-stack-card,
  .work-process-card,
  .services-card,
  .stats-container,
  .toolbox-card,
  .certifications-card,
  .testimonials-card {
    grid-column: 1;
  }

  .profile-card {
    grid-row: 1;
  }

  .tech-stack-card {
    grid-row: 2;
  }

  .work-process-card {
    grid-row: 3;
  }

  .services-card {
    grid-row: 4;
  }

  .stats-container {
    grid-row: 5;
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .toolbox-card {
    grid-row: 6;
  }

  .certifications-card {
    grid-row: 7;
  }

  .testimonials-card {
    grid-row: 8;
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .profile-text {
    align-items: center;
    height: auto;
    margin-bottom: 1rem;
  }

  .profile-pic {
    width: 80px;
    height: 80px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }

  .profile-item {
    justify-content: center;
    text-align: center;
  }

  .profile-buttons {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }

  .profile-card button {
    padding: 0.75rem 2rem;
    width: 100%;
    justify-content: center;
  }

  .profile-card .btn-git,
  .profile-card .btn-hire {
    flex: none;
    width: 100%;
    min-width: unset;
  }

  .tech-stack-grid,
  .services-grid,
  .toolbox-grid,
  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    text-align: center;
  }

  .tech-stack-item,
  .service-item,
  .toolbox-item,
  .certification-item {
    justify-content: center;
    text-align: center;
  }

  .work-process-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
  }

  .work-process-content {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .work-process-header {
    justify-content: center;
    width: 100%;
  }

  .work-process-item p {
    padding-left: 0;
    text-align: center;
    width: 100%;
  }

  .work-process-item i {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .modal-content {
    margin: 10% auto;
    width: 95%;
    padding: 1.5rem;
  }

  .form-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn-submit,
  .btn-cancel {
    flex: none;
  }
}

/* Small smartphone (up to 480px) */
@media screen and (max-width: 480px) {
  .theme-toggle {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .language-toggle {
    top: 3.8rem; /* Adjust for smaller screens */
    right: 1rem; /* Move more to the left for better spacing */
    padding: 0.2rem;
  }
  
  .lang-option {
    font-size: 0.85rem;
    padding: 0.15rem 0.3rem;
  }

  .dashboard {
    padding: 0.5rem;
  }

  .profile-card,
  .tech-stack-card,
  .work-process-card,
  .services-card,
  .toolbox-card,
  .certifications-card,
  .testimonials-card {
    padding: 1rem;
  }

  .profile-pic {
    width: 60px;
    height: 60px;
  }

  h2 {
    font-size: 1.1rem;
  }

  .profile-card button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    width: 100%;
    min-width: unset;
  }

  .profile-card .btn-git,
  .profile-card .btn-hire {
    width: 100%;
    min-width: unset;
  }

  .modal-content {
    margin: 5% auto;
    padding: 1rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.5rem;
  }

  .tech-stack-item,
  .service-item,
  .toolbox-item,
  .certification-item,
  .profile-item {
    justify-content: center;
    text-align: center;
  }
}




