@import url("https://fonts.googleapis.com/css2?family=Quicksand&display=swap");

/* Hide GitHub Pages repository link */
.github-fork-ribbon-wrapper,
.github-fork-ribbon,
#forkongithub,
.github-corner,
.github-ribbon {
  display: none !important;
}

/* Root variables for theme switching */
:root {
  --bg-color: #f8f9fa;
  --text-color: #333;
  --container-bg: white;
  --accent-color: #464686;
  --secondary-text: #666;
  --border-color: #eee;
  --card-bg: #f8f9fa;
  --card-border: #ddd;
}

[data-theme="dark"] {
  --bg-color: #111214;
  --text-color: #e6edf3;
  --container-bg: #161b22;
  --accent-color: #ffffff;
  --secondary-text: #8b949e;
  --border-color: #30363d;
  --card-bg: #0d1117;
  --card-border: #30363d;
}

/* Dark Mode Toggle Button */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--accent-color);
  color: var(--container-bg);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 1000;
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Basic styling for your portfolio */
body {
  font-family: "Quicksand", serif;
  margin: 0;
  padding: 20px;
  line-height: 1.6;
  color: var(--text-color);
  background: var(--bg-color);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--container-bg);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
  height: auto !important;
  min-height: auto !important;
}

header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--accent-color);
}

h1 {
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

a {
  color: var(--accent-color);
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease;
  -webkit-transition: all 0.3s ease;
}

a:hover {
  color: var(--accent-color);
  opacity: 0.8;
  transform: scale(1.05);
}

.subtitle {
  color: var(--secondary-text);
  font-size: 1.2rem;
}

main {
  margin-bottom: 3rem;
}

.section {
  margin-bottom: 2rem;
}

.section h2 {
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
  overflow: visible;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.project-card {
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 1.5rem;
  background: var(--card-bg);
  transition: all 0.3s ease;
}

.project-card h3 {
  margin-top: 0;
  color: var(--accent-color);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.skill-category {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 6px;
  border-left: 4px solid var(--accent-color);
  border: 1px solid var(--card-border);
  transition: all 0.3s ease;
}

.skill-category h4 {
  margin-top: 0;
  color: var(--accent-color);
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-list li {
  padding: 0.2rem 0;
  color: var(--secondary-text);
}

.education-item,
.experience-item {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--accent-color);
  border: 1px solid var(--card-border);
  color: var(--text-color);
  transition: all 0.3s ease;
}

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

.education-title {
  flex: 1;
}

.university-logo {
  margin-left: 1rem;
  flex-shrink: 0;
  width: 120px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.university-logo img {
  transition: transform 0.3s ease;
  width: 120px;
  height: 90px;
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
}

.university-logo img:hover {
  transform: scale(1.05);
}

.education-item h4,
.experience-item h4 {
  margin-top: 0;
  color: var(--accent-color);
}

.date-range {
  color: var(--secondary-text);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.languages {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  margin-top: 1rem;
}

.language-item {
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.language-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.language-name {
  font-weight: bold;
  color: var(--text-color);
  font-size: 1rem;
}

.language-level {
  font-size: 0.85rem;
  color: var(--secondary-text);
  font-weight: 500;
}

.language-bar {
  width: 100%;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.language-progress {
  height: 100%;
  background: linear-gradient(45deg, var(--accent-color), #58a6ff);
  border-radius: 4px;
  transition: width 1s ease-in-out;
  position: relative;
}

.language-progress[data-level="100"] {
  width: 100%;
}

.language-progress[data-level="70"] {
  width: 70%;
}

.language-progress[data-level="85"] {
  width: 85%;
}

.language-badge {
  background: var(--accent-color);
  color: var(--container-bg);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

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

.contact-item {
  color: var(--secondary-text);
}

footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--secondary-text);
}

/* Technology badges */
.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.tech-badge {
  background: var(--accent-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s ease;
}

.tech-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .tech-badge {
  background: var(--accent-color);
  color: var(--container-bg);
}

/* Dark mode toggle button theme-specific styles */
[data-theme="dark"] .theme-toggle {
  background: var(--accent-color);
  color: var(--container-bg);
}

/* Timeline styling for experience */
.timeline {
  margin-top: 1rem;
}

.timeline-period {
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-color);
  position: relative;
}

.timeline-period::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background: var(--accent-color);
  border-radius: 50%;
}

.timeline-period strong {
  color: var(--accent-color);
  display: block;
  margin-bottom: 0.5rem;
}

.timeline-period ul {
  margin-top: 0.5rem;
}

/* GitHub icon styling */
.github-icon {
  display: inline-flex;
  align-items: center;
  margin-right: 0.5rem;
  transform: translateY(3px);
}

.github-icon svg {
  width: 16px;
  height: 16px;
  color: var(--text-color);
}

.contact-item a:hover {
  color: var(--accent-color);
}

/* Email copy functionality styling */
.email-copy {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  user-select: none;
}

.email-copy:hover {
  color: var(--accent-color);
  transform: translateY(-1px);
}

.email-copy:active {
  transform: scale(0.98);
}

.copy-indicator {
  margin-left: 0.5rem;
  font-size: 0.9em;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.email-copy:hover .copy-indicator {
  opacity: 1;
}

.email-text {
  transition: border-color 0.3s ease;
}

.email-copy:hover .email-text {
  border-bottom-color: var(--accent-color);
}

/* Mobile and Responsive Design */
@media (max-width: 768px) {
  /* Theme toggle */
  .theme-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  /* Body and container */
  body {
    padding: 10px;
  }

  .container {
    padding: 1rem;
    margin: 0;
    border-radius: 8px;
  }

  /* Navigation */
  .navigation {
    flex-direction: column !important;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    text-align: center;
  }

  .nav-brand {
    width: 100%;
    text-align: center;
  }

  .nav-brand h1 {
    font-size: 1.5rem;
    margin: 0;
    display: block !important;
    text-align: center;
  }

  .nav-brand .subtitle {
    font-size: 0.9rem;
    margin: 0.5rem 0;
    display: block !important;
    text-align: center;
  }

  /* Navigation menu - clean 2x3 grid */
  .nav-menu {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
    max-width: 320px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav-item {
    width: 100%;
    font-size: 0.75rem;
    padding: 0.6rem 0.3rem;
    text-align: center;
    border-radius: 20px;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
  }

  /* Content area */
  .content-area {
    margin-top: 1.5rem;
  }

  .slide-content {
    padding: 1.5rem;
    border-radius: 8px;
  }

  .slide-content h2 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
  }

  /* Education logos */
  .education-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .university-logo {
    width: 80px;
    height: 60px;
    margin: 0 auto 1rem auto;
  }

  .university-logo img {
    width: 70px !important;
    height: 50px !important;
    object-fit: contain;
  }

  /* Skills and projects */
  .skills-grid,
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Tech badges */
  .tech-badges {
    justify-content: center;
    gap: 0.3rem;
  }

  .tech-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
  }

  /* About section contact info styling */
  .about-content .contact-info {
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.5rem 0;
  }

  .about-content .contact-info .contact-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem;
    font-size: 0.85rem;
  }

  /* Languages */
  .language-items {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  /* Single column navigation for very small screens */
  .nav-menu {
    grid-template-columns: 1fr !important;
    max-width: 250px;
    gap: 0.4rem;
  }

  .nav-item {
    font-size: 0.8rem;
    padding: 0.7rem;
    min-height: 44px;
  }

  .slide-content {
    padding: 1rem;
  }

  .slide-content h2 {
    font-size: 1.2rem;
  }

  .university-logo {
    width: 150px;
    height: 150px;
  }

  .university-logo img {
    width: 150px !important;
    height: 150px !important;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0.8rem;
  }

  .nav-brand h1 {
    font-size: 1.3rem;
  }

  .nav-brand .subtitle {
    font-size: 0.8rem;
  }

  .nav-item {
    font-size: 0.75rem;
    padding: 0.6rem;
    min-height: 40px;
  }

  .slide-content {
    padding: 0.8rem;
  }

  .slide-content h2 {
    font-size: 1.1rem;
  }
}

/* Landscape mode for mobile */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
  .navigation {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
  }

  .nav-brand {
    flex: 1;
    text-align: left;
  }

  .nav-brand h1 {
    font-size: 1.2rem;
    margin: 0;
  }

  .nav-brand .subtitle {
    font-size: 0.7rem;
    margin: 0;
  }

  .nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.2rem;
    max-width: 60%;
  }

  .nav-item {
    font-size: 0.6rem;
    padding: 0.3rem 0.5rem;
    min-height: 28px;
  }

  .slide-content {
    padding: 0.8rem;
  }
}

/* Navigation Styles */
.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: column;
  padding: 1rem 0;
  border-bottom: 2px solid var(--accent-color);
  margin-bottom: 2rem;
}

.nav-brand h1 {
  display: flex;
  justify-content: center;
  margin: 0;
  color: var(--accent-color);
}

.nav-brand .subtitle {
  display: flex;
  justify-content: center;
  margin: 1rem;
  color: var(--secondary-text);
  font-size: 1rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1rem;
}

.nav-item {
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-item:hover {
  background: var(--accent-color);
  color: var(--container-bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.nav-item.active {
  background: var(--accent-color);
  color: var(--container-bg);
}

/* Content Area Styles */
.content-area {
  position: relative;
  min-height: auto !important;
  height: auto !important;
  overflow: visible;
  width: 100%;
}

.content-section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.5s ease;
  pointer-events: none;
  min-height: fit-content;
  box-sizing: border-box;
}

.content-section.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  position: relative;
}

.slide-content {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  min-height: fit-content;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.slide-content h2 {
  color: var(--accent-color);
  margin-top: 0;
  margin-bottom: 2rem;
  text-align: center;
  font-size: 2rem;
  border-bottom: 2px solid var(--accent-color);
  padding-bottom: 1rem;
}

/* About Me Specific Styles */
.about-content {
  text-align: center;
  padding: 1rem 0;
}

/* Individual about blocks with alternating layout */
.about-block {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.about-block:nth-child(1) {
  animation-delay: 0.2s;
}
.about-block:nth-child(2) {
  animation-delay: 0.4s;
}
.about-block:nth-child(3) {
  animation-delay: 0.6s;
}
.about-block:nth-child(4) {
  animation-delay: 0.8s;
}
.about-block:nth-child(5) {
  animation-delay: 1s;
}
.about-block:nth-child(6) {
  animation-delay: 1.2s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Left image layout (image on left, text on right) */
.about-block.left-image {
  flex-direction: row;
}

/* Right image layout (text on left, image on right) */
.about-block.right-image {
  flex-direction: row;
}

.about-image {
  flex-shrink: 0;
  width: 180px;
}

.about-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-color);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-photo:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  border-color: var(--text-color);
}

.about-text {
  flex: 1;
  text-align: left;
}

.about-text p {
  line-height: 1.7;
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-color);
  background: var(--card-bg);
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent-color);
  border-right: 4px solid var(--accent-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.about-text p:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

/* Languages Block Specific Styles */
.about-block.languages-block .about-text {
  flex: 1.2;
}

.languages-content h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.languages-content p {
  line-height: 1.7;
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-color);
  background: var(--card-bg);
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent-color);
  border-right: 4px solid var(--accent-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.languages-content p:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.languages-visual {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: 15px;
  border: 2px solid var(--accent-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.languages-visual:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.languages-visual .language-items {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.languages-visual .language-item {
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
}

.languages-visual .language-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.languages-visual .language-name {
  font-weight: bold;
  color: var(--text-color);
  font-size: 1.1rem;
}

.languages-visual .language-level {
  font-size: 0.9rem;
  color: var(--secondary-text);
  font-weight: 500;
  background: var(--accent-color);
  color: var(--container-bg);
  padding: 0.2rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
}

.languages-visual .language-bar {
  width: 100%;
  height: 10px;
  background: var(--border-color);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.languages-visual .language-progress {
  height: 100%;
  background: linear-gradient(45deg, var(--accent-color), #58a6ff);
  border-radius: 5px;
  transition: width 1.5s ease-in-out;
  position: relative;
}

.about-content .contact-info {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.about-content .languages {
  margin-top: 2rem;
}

.about-content .languages h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
}

/* Responsive adjustments for about section */
@media (min-width: 768px) {
  .about-block {
    gap: 3rem;
    margin-bottom: 2.5rem;
  }

  .about-image {
    width: 200px;
  }

  .about-photo {
    width: 200px;
    height: 200px;
  }

  .about-text p {
    font-size: 1.08rem;
    line-height: 1.8;
    padding: 1.4rem 1.6rem;
  }
}

@media (max-width: 767px) {
  .about-block {
    flex-direction: column !important;
    gap: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
  }

  .about-image {
    width: 150px;
    order: 1;
  }

  .about-text {
    order: 2;
    max-width: 100%;
  }

  .about-photo {
    width: 150px;
    height: 150px;
  }

  .about-text p {
    font-size: 1rem;
    line-height: 1.65;
    padding: 1rem 1.2rem;
    text-align: left;
  }

  /* Languages block mobile styles */
  .about-block.languages-block .about-text {
    order: 1;
  }

  .about-block.languages-block .languages-visual {
    order: 2;
    width: 100%;
    margin-top: 1rem;
  }

  .languages-content p {
    font-size: 1rem;
    padding: 1rem 1.2rem;
  }
}

@media (max-width: 480px) {
  .about-block {
    gap: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .about-image {
    width: 130px;
  }

  .about-photo {
    width: 130px;
    height: 130px;
  }

  .about-text p {
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
  }
}

.language-items {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Learning Section Styles */
.learning-content {
  text-align: center;
  padding: 1rem 0;
}

.learning-block {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  text-align: left;
}

.learning-block:nth-child(1) {
  animation-delay: 0.1s;
  justify-content: center;
  text-align: center;
}

.learning-block:nth-child(2) {
  animation-delay: 0.3s;
}

.learning-block:nth-child(3) {
  animation-delay: 0.5s;
}

.learning-block:nth-child(4) {
  animation-delay: 0.7s;
}

.learning-block:nth-child(5) {
  animation-delay: 0.9s;
}

/* Left image layout for learning blocks */
.learning-block.left-image {
  flex-direction: row;
}

.learning-image {
  flex-shrink: 0;
  width: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.learning-logo {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: contain;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: transparent;
}

.learning-logo:hover {
  transform: translateY(-3px) scale(1.02);
}

.learning-text {
  flex: 1;
  text-align: left;
}

.learning-text p {
  margin: 0.5rem 0;
  line-height: 1.6;
}

.learning-text p:first-child {
  margin-bottom: 0.8rem;
}

/* Responsive design for learning section */
@media (max-width: 768px) {
  .learning-block {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .learning-block.left-image {
    flex-direction: column;
  }

  .learning-image {
    width: 100px;
  }

  .learning-logo {
    width: 100px;
    height: 100px;
  }

  .learning-text {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .learning-block {
    gap: 1rem;
  }

  .learning-image {
    width: 80px;
  }

  .learning-logo {
    width: 80px;
    height: 80px;
  }
}

/* Education Specific Styles */
.education-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Experience Specific Styles */
.experience-items {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

/* Projects Grid Styles */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Learning Content Styles */
.learning-content ul {
  max-width: 800px;
  margin: 0 auto;
}

.learning-content li {
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 8px;
  border-left: 4px solid var(--accent-color);
}

/* Complete source protection */
* {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

input,
textarea {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  user-select: text !important;
}

/* Hide sources from inspector */
script,
style,
link[rel="stylesheet"] {
  display: none !important;
}

/* Image protection */
img {
  -webkit-user-drag: none !important;
  pointer-events: none !important;
  image-rendering: pixelated !important;
}

/* Print protection */
@media print {
  * {
    display: none !important;
  }
  body::before {
    content: "© Protected Content - Printing Not Allowed" !important;
    display: block !important;
    text-align: center !important;
    font-size: 24px !important;
  }
}

/* Terminal styling */
.terminal {
  font-family: "IBM Plex Mono", monospace;
  background: #1a1a1a;
  color: #00ff00;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #333;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.3);
  font-size: 0.85em;
  letter-spacing: 0.5px;
  display: inline-block;
  position: relative;
  background-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 255, 0, 0.03) 50%,
    transparent 100%
  );
  text-shadow: 0 0 8px rgba(0, 255, 0, 0.3);
  transition: all 0.3s ease;
  margin-top: -2px;
}

.terminal:hover {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 4px 16px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 255, 0, 0.1);
  transform: translateY(-1px);
}

[data-theme="dark"] .terminal {
  background: #0a0a0a;
  border-color: #222;
  color: #00ff41;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.4);
}

.terminal-cursor {
  animation: blink 1s infinite;
  color: inherit;
}

@keyframes blink {
  0%,
  50% {
    opacity: 1;
  }
  51%,
  100% {
    opacity: 0;
  }
}

/* Mobile protection */
@media (max-width: 768px) {
  body {
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }
}
