:root {
  --bg-primary: #f0f0f0;
  --bg-secondary: #ffffff;
  --text-primary: #333333;
  --text-secondary: #555555;
  --accent: #0d6efd;
  --sidebar-bg: rgba(220, 220, 220, 0.7);
  --window-bg: rgba(255, 255, 255, 0.85);
  --window-border: rgba(200, 200, 200, 0.7);
  --terminal-bg: #1e1e1e;
  --terminal-text: #f0f0f0;
  --tooltip-bg: rgba(0, 0, 0, 0.8);
  --tooltip-text: #fff;
}

body {
  font-family: "Titillium Web", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 19px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color 0.3s, color 0.3s;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

#boot-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #282828fd;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 1s ease-in-out;
}

#boot-logo {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  margin-bottom: 20px;
  border: 2px solid #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

#boot-name {
  color: #fff;
  font-size: 24px;
  margin-bottom: 30px;
}

#boot-progress {
  width: 200px;
  height: 4px;
  background-color: #333;
  border-radius: 2px;
  overflow: hidden;
}

#boot-progress-bar {
  width: 0%;
  height: 100%;
  background-color: #fff;
  border-radius: 2px;
  transition: width 3s ease-in-out;
}

.sidebar {
  background-color: var(--sidebar-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s;
  height: 100vh;
  position: fixed;
  width: 250px;
  z-index: 100;
  overflow-y: auto;
}

.content-wrapper {
  margin-left: 250px;
  padding: 20px;
  min-height: 100vh;
  transition: margin-left 0.3s;
}

/* Hamburger Menu */
.hamburger-menu {
  display: none;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 101;
  cursor: pointer;
  background-color: var(--bg-secondary);
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .sidebar {
    display: block;
    transform: translateX(-100%);
    width: 200px;
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .sidebar-text {
    display: block;
  }

  .content-wrapper {
    margin-left: 0;
    padding: 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .hamburger-menu {
    display: block;
  }

  .mac-menu-bar {
    padding: 8px 10px;
    font-size: 12px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .mac-menu-items,
  .mac-menu-right {
    flex-wrap: wrap;
    gap: 10px;
  }

  .mac-menu-item {
    font-size: 12px;
  }

  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 10px;
  }

  .project-item {
    padding: 10px;
  }

  .project-icon {
    width: 48px;
    height: 48px;
  }

  .project-title {
    font-size: 12px;
  }

  .skill-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
  }

  .skill-icon {
    width: 40px;
    height: 40px;
  }

  .skill-name {
    font-size: 12px;
  }

  .profile-img {
    width: 100px;
    height: 100px;
  }

  .profile-name {
    font-size: 1.8rem;
  }

  .profile-title {
    font-size: 1rem;
  }

  .mac-profile-header {
    height: 150px;
  }

  .mac-profile-avatar {
    width: 120px;
    height: 120px;
    bottom: -40px;
  }

  .mac-profile-name {
    font-size: 20px;
  }

  .mac-profile-stats {
    gap: 20px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-label {
    font-size: 12px;
  }

  .certificate-img {
    height: 180px;
  }

  .certificate-title {
    font-size: 12px;
    padding: 8px;
  }

  .resume-frame {
    height: 600px;
  }

  .form-input,
  .form-textarea {
    padding: 10px;
    font-size: 14px;
  }

  .submit-btn,
  .download-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  body {
    font-size: 16px;
  }
}

.sidebar-link {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 8px;
  margin: 5px 10px;
  transition: background-color 0.2s;
}

.sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-link.active {
  background-color: var(--accent);
  color: white;
}

.sidebar-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.section-header {
  display: flex;
  align-items: center;
  background-color: var(--bg-secondary);
  padding: 6px 15px;
  border-radius: 10px 10px 0 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.window-controls {
  display: flex;
  gap: 8px;
  margin-right: 15px;
}

.window-control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.control-close {
  background-color: #ff5f56;
}

.control-minimize {
  background-color: #ffbd2e;
}

.control-maximize {
  background-color: #27c93f;
}

.mac-window {
  background-color: var(--window-bg);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--window-border);
  overflow: hidden;
}

.section-content {
  padding: 20px;
  background-color: var(--bg-secondary);
  border-radius: 0 0 10px 10px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
  padding: 20px;
}

.project-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 15px;
  border-radius: 8px;
  transition: transform 0.2s, background-color 0.2s;
}

.project-item:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateY(-5px);
}

.project-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
}

.project-title {
  font-size: 14px;
  color: var(--text-primary);
}

.project-detail-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  background-color: var(--window-bg);
  border-radius: 10px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  display: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--window-border);
  overflow: hidden;
}

.project-detail-modal .section-content {
  max-height: calc(80vh - 50px);
  overflow-y: auto;
}

.github-button {
  display: inline-block;
  padding: 10px 15px;
  margin-top: 20px;
  background-color: #24292e;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.github-button:hover {
  background-color: #444c56;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

.terminal {
  background-color: var(--terminal-bg);
  color: var(--terminal-text);
  font-family: "SF Mono", Menlo, Monaco, "Courier New", monospace;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
  overflow: hidden;
  height: 350px;
  overflow-y: auto;
}

.terminal-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.terminal-user {
  color: #4cd964;
  margin-right: 5px;
}

.terminal-path {
  color: #0095ff;
  margin-right: 5px;
}

.terminal-prompt {
  color: #ffffff;
}

.terminal-output {
  margin-top: 10px;
  line-height: 1.5;
}

.terminal-command {
  white-space: nowrap;
  overflow: hidden;
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

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

.skill-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 10px;
  transition: transform 0.3s;
}

.skill-item:hover .skill-icon {
  transform: scale(1.2);
}

.skill-name {
  font-size: 14px;
  font-weight: 500;
}

.timeline {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline::after {
  content: "";
  position: absolute;
  width: 2px;
  background-color: var(--accent);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--accent);
  border-radius: 50%;
  top: 15px;
  z-index: 1;
}

.timeline-left {
  left: 0;
}

.timeline-right {
  left: 50%;
}

.timeline-left::after {
  right: -10px;
}

.timeline-right::after {
  left: -10px;
}

.timeline-content {
  padding: 20px;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px;
}

.certificate-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s;
}

.certificate-item:hover {
  transform: scale(1.03);
}

.certificate-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.menu-link {
  all: unset;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  margin-right: 12px;
}

.certificate-title {
  padding: 10px;
  text-align: center;
  background-color: var(--bg-secondary);
}

.certificate-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 900px;
  height: 80vh;
  background-color: var(--window-bg);
  border-radius: 10px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  display: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--window-border);
  overflow: hidden;
}

.certificate-modal .section-content {
  max-height: calc(80vh - 50px);
  overflow-y: auto;
}

.resume-frame {
  width: 100%;
  height: 800px;
  border: none;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.form-input {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.form-textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.submit-btn:hover {
  background-color: #2563eb;
}

.contact-info {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.contact-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s;
}

.social-link:hover {
  transform: translateY(-5px);
  background-color: var(--accent);
}

.social-icon {
  width: 20px;
  height: 20px;
  color: var(--text-primary);
}

.social-link:hover .social-icon {
  color: white;
}

.theme-toggle {
  width: 0px;
  height: 0px;
  border-radius: 50%;
  background-color: var(--window-bg);
  border: 1px solid var(--window-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
  margin: 10px auto 15px;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin-bottom: 20px;
}

.profile-name {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--accent);
}

.profile-title {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.profile-bio {
  max-width: 800px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.download-btn {
  background-color: var(--accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.download-btn:hover {
  background-color: #2563eb;
}

.mac-profile-window {
  background-color: var(--window-bg);
  border-radius: 10px;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.mac-profile-header {
  height: 200px;
  background: linear-gradient(120deg, #2563eb, #4f46e5);
  position: relative;
}

.mac-profile-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid white;
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.mac-profile-info {
  margin-top: 70px;
  padding: 20px;
  text-align: center;
}

.mac-profile-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 5px;
}

.mac-profile-title {
  color: var(--text-secondary);
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.profile-tag {
  background-color: var(--bg-primary);
  border-radius: 50px;
  padding: 6px 12px;
  font-size: 14px;
  display: inline-block;
}

.mac-profile-bio {
  line-height: 1.7;
  max-width: 750px;
  margin: 0 auto 20px;
}

.mac-profile-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 30px 0;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

.mac-pdf-viewer {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-secondary);
  border-radius: 10px;
  overflow: hidden;
  height: 700px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pdf-toolbar {
  background-color: var(--bg-primary);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--window-border);
}

.pdf-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.pdf-control {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  cursor: pointer;
  transition: background-color 0.2s;
}

.pdf-control:hover {
  background-color: var(--window-border);
}

.pdf-search {
  flex-grow: 1;
  margin-left: 20px;
  background-color: var(--bg-primary);
  border: 1px solid var(--window-border);
  border-radius: 5px;
  padding: 6px 10px;
  color: var(--text-primary);
  font-size: 14px;
}

.pdf-content {
  flex-grow: 1;
  background-color: #f0f0f0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px;
  overflow-y: auto;
}

.pdf-page {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 40px;
  max-width: 700px;
  width: 100%;
}

.pdf-status-bar {
  background-color: var(--bg-primary);
  padding: 6px 15px;
  border-top: 1px solid var(--window-border);
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

.mac-menu-bar {
  display: flex;
  align-items: center;
  background-color: var(--bg-primary);
  padding: 8px 15px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--window-border);
}

.mac-menu-apple {
  margin-right: 20px;
}

.mac-menu-items {
  display: flex;
  gap: 20px;
  font-size: 14px;
}

.mac-menu-right {
  display: flex;
  gap: 15px;
  margin-left: auto;
  font-size: 14px;
}

@media (max-width: 768px) {
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item::after {
    left: 21px;
  }

  .timeline-right {
    left: 0%;
  }
}

@keyframes highlight {
  0% {
    background-color: rgba(255, 255, 255, 0.1);
  }
  50% {
    background-color: rgba(255, 255, 255, 0.2);
  }
  100% {
    background-color: transparent;
  }
}

.highlight {
  animation: highlight 1.5s ease-in-out;
}

.mac-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 20px;
  padding: 40px;
  min-height: 400px;
  align-content: start;
}

.mac-folder-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.1s;
  user-select: none;
}

.mac-folder-item:hover {
  background-color: rgba(125, 125, 125, 0.15);
}

.mac-folder-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 8px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.mac-folder-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  background-color: transparent;
  padding: 2px 6px;
  border-radius: 4px;
  word-break: break-word;
  max-width: 100px;
}
