:root {
  --gradient-primary: linear-gradient(135deg, #111111 0%, #1c1c1c 100%);
  --gradient-secondary: linear-gradient(135deg, #1a1a1a 0%, #222222 100%);
  --gradient-card: linear-gradient(135deg, #202020 0%, #1a1a1a 100%);
  --gradient-button: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.1) 100%
  );
  --gradient-button-active: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.15) 0%,
    rgba(255, 255, 255, 0.2) 100%
  );
  --gradient-modal: linear-gradient(
    135deg,
    rgba(18, 18, 18, 0.95),
    rgba(28, 28, 28, 0.98)
  );
  --color-text: #ffffff;
  --color-text-secondary: #e6e6e6;
  --color-text-muted: #a0a0a0;
  --color-text-detail: #cccccc;
  --border-radius-lg: 12px;
  --border-radius-md: 8px;
  --border-radius-sm: 6px;
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 32px;
  --spacing-xl: 40px;
  --transition-speed: 0.25s;
  --box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

body {
  font-family: "Raleway", sans-serif;
  background: var(--gradient-primary);
  color: var(--color-text);
  padding: var(--spacing-lg);
  margin: 0;
  min-height: 100vh;
  line-height: 1.6;
  max-width: 1100px;
  margin: 0 auto;
}

.container {
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  margin: 0 auto;
  opacity: 0;
  animation: fadeInLoad 0.6s ease-out forwards;
}

.personal-info {
  background: var(--gradient-secondary);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--box-shadow);
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: fadeInLoad 0.6s ease-out forwards;
  animation-delay: 0.2s;
}

header {
  position: relative;
  color: var(--color-text);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  height: 120px;
  background-image: url("res/header.jpg");
  background-size: cover;
  background-position: center;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
  box-shadow: var(--box-shadow);
}

header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  border-radius: var(--border-radius-lg);
  z-index: 1;
}

.header-contact {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: flex-end;
  margin: calc(var(--spacing-sm) * -0.5) 0 var(--spacing-md);
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeIn 0.4s ease-out forwards;
}

.header-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-text);
  transition: all var(--transition-speed) ease;
  text-decoration: none;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 1;
}

.header-contact-link:link,
.header-contact-link:visited,
.header-contact-link:active {
  background: rgba(255, 255, 255, 0.25);
  color: var(--color-text);
  text-decoration: none;
  opacity: 1;
}

.header-contact-link:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.download-resume {
  background: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #ffffff !important;
}

.download-resume:hover {
  background: #f0f0f0 !important;
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

.header-contact-link svg {
  width: 16px;
  height: 16px;
}

.header-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: var(--spacing-lg);
  z-index: 2;
  opacity: 0;
  animation: fadeIn 0.4s ease-out forwards;
}

.header-content h1 {
  margin: 0 var(--spacing-md) 0 0;
  font-size: 4rem;
  font-weight: 600;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
}

.title-location {
  display: flex;
  flex-direction: column;
}

.title-location p,
.location {
  margin: 0;
  font-size: 1.3rem;
  color: var(--color-text-secondary);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
}

.location {
  display: flex;
  align-items: center;
}

.bio-section {
  background: var(--gradient-secondary);
  padding: var(--spacing-lg);
  border-radius: var(--border-radius-lg);
  margin-bottom: var(--spacing-lg);
  animation: fadeIn 0.4s ease-out forwards;
  height: 140px;
}

.bio-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.profile-image-container {
  width: 130px;
  height: 130px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.bio-content {
  flex: 1;
}

.bio-content h2 {
  margin: 0 0 var(--spacing-sm);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.bio-content p {
  color: var(--color-text-detail);
  line-height: 1.8;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 300;
}

.tab-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  max-width: 100%;
  animation: fadeIn 0.4s ease-out forwards;
}

.tab-btn {
  padding: 12px 32px;
  border: none;
  background: none;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  width: 100%;
  text-align: center;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
}

.project-grid,
.experience-grid {
  display: none;
  gap: var(--spacing-md);
}

#projects.active,
#experiences.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  animation: none;
  opacity: 1;
}

.project-card,
.experience-card {
  background: var(--gradient-secondary);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: stretch;
  height: 200px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.project-card:hover,
.experience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.project-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.project-image-container {
  width: 200px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-img.static {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.project-img.gif {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-img.static {
  opacity: 0;
}

.project-card:hover .project-img.gif {
  opacity: 1;
}

.project-header {
  margin-bottom: 6px;
}

.project-header h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.timeframe {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tech-tag {
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--color-text-muted);
}

.project-preview {
  flex: 1;
  overflow: hidden;
}

.project-preview p {
  margin: 0;
  color: var(--color-text-detail);
  line-height: 1.5;
  font-size: 0.9rem;
}

.experience-card {
  background: var(--gradient-secondary);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
  padding: var(--spacing-md);
  height: 160px;
}

.experience-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.experience-content {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  height: 100%;
}

.experience-header {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.company-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-title {
  flex: 1;
}

.experience-title h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--color-text);
}

.company-name {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 4px 0;
}

.experience-preview {
  color: var(--color-text-detail);
  line-height: 1.5;
  font-size: 0.9rem;
  margin-top: auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-details,
.experience-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--color-text-detail);
  font-size: 0.9rem;
}

.project-details.expanded {
  max-height: 400px;
  margin-top: var(--spacing-sm);
}

.experience-details.expanded {
  max-height: 300px;
  margin-top: var(--spacing-sm);
}

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 40px 20px;
  overflow-y: auto;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-content {
  position: relative;
  width: 85%;
  max-width: 720px;
  margin: auto;
  background: var(--gradient-secondary);
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-text);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
  font-size: 20px;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-body {
  padding: 40px 32px 48px;
}

.modal-title {
  font-size: 1.8rem;
  font-weight: 500;
  margin: 0;
  color: var(--color-text);
  letter-spacing: -0.01em;
  padding: 20px 16px 0;
}

.modal-subtitle {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 8px;
  padding: 0 16px;
}

.modal-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
  padding: 0 16px;
}

.tech-tag {
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  color: var(--color-text-detail);
}

.modal-content-section {
  margin-top: 24px;
  color: var(--color-text-detail);
  line-height: 1.6;
  font-size: 0.95rem;
  padding: 0 16px;
}

.modal-content-section p {
  margin: 12px 0;
}

.modal-content-section p:first-child {
  margin-top: 0;
}

.modal-content-section p:last-child {
  margin-bottom: 0;
}

.modal-footer {
  padding: 24px 16px 0px;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.modal-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.modal-company {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 20px 16px 0;
}

.modal-company-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-company-info {
  flex: 1;
}

.modal-company-name {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0;
}

.modal-company-role {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

@media (max-width: 768px) {
  #projects.active,
  #experiences.active {
    grid-template-columns: 1fr !important;
    gap: var(--spacing-md);
  }

  .project-card,
  .experience-card {
    width: 100%;
    margin: 0;
  }

  .header-contact {
    justify-content: center;
    width: 100%;
    margin-bottom: var(--spacing-md);
  }

  .project-image-container {
    width: 140px;
    height: 140px;
  }

  .project-content {
    padding: var(--spacing-md);
  }

  .project-header h3 {
    font-size: 1.1rem;
  }

  .project-preview p {
    font-size: 0.85rem;
  }

  .tech-tag {
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  .experience-card {
    height: auto;
    min-height: 140px;
    padding: var(--spacing-md);
  }

  .company-logo {
    width: 70px;
    height: 70px;
  }

  .modal-overlay {
    padding: 20px;
  }

  .modal-content {
    width: 100%;
  }

  .modal-body {
    padding: 24px 20px;
  }

  .modal-title {
    font-size: 1.6rem;
    padding: 8px 12px 0;
  }

  .modal-subtitle,
  .modal-tech,
  .modal-content-section,
  .modal-footer,
  .modal-company {
    padding-left: 12px;
    padding-right: 12px;
  }

  .modal-close {
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .project-card {
    flex-direction: column;
    height: auto;
  }

  .project-image-container {
    width: 100%;
    height: 180px;
    order: -1;
  }

  .project-content {
    padding: var(--spacing-md);
  }

  .project-preview {
    margin-top: var(--spacing-sm);
  }

  .project-tech {
    margin: var(--spacing-sm) 0;
  }

  .experience-card {
    padding: var(--spacing-sm);
  }

  .experience-header {
    gap: var(--spacing-sm);
  }

  .company-logo {
    width: 60px;
    height: 60px;
  }

  .experience-title h3 {
    font-size: 1rem;
  }

  .experience-preview {
    font-size: 0.85rem;
  }

  .header-contact {
    gap: 8px;
    padding: 0 var(--spacing-sm);
  }

  .header-contact-link {
    padding: 6px 12px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  #projects.active,
  #experiences.active {
    gap: var(--spacing-sm);
  }
}

@media (max-width: 360px) {
  .project-image-container {
    height: 160px;
  }

  .project-content,
  .experience-card {
    padding: 12px;
  }

  .project-header h3,
  .experience-title h3 {
    font-size: 0.95rem;
  }

  .timeframe {
    font-size: 0.75rem;
  }

  .company-logo {
    width: 50px;
    height: 50px;
  }

  .project-preview p,
  .experience-preview {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .header-contact-link {
    padding: 4px 8px;
    font-size: 0.7rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .header-contact-link svg {
    width: 12px;
    height: 12px;
  }

  .title-location p {
    font-size: 0.9rem;
  }

  .profile-image-container {
    width: 90px;
    height: 90px;
  }

  .bio-content h2 {
    font-size: 1.4rem;
  }

  .bio-content p {
    font-size: 0.9rem;
  }

  .tab-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

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

@media print {
  body {
    background: white;
    color: black;
  }

  .container {
    max-width: 100%;
  }

  .header-contact-link,
  .tab-buttons,
  .modal-overlay {
    display: none;
  }

  .project-card,
  .experience-card {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

@media (max-width: 1024px) {
  #projects.active,
  #experiences.active {
    grid-template-columns: 1fr;
  }

  .tab-buttons {
    grid-template-columns: 1fr;
  }
}

.page-wrapper {
  opacity: 0;
  transform: translateY(10px);
  animation: pageLoad 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageLoad {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-contact,
.header-content,
.tab-buttons,
.project-card,
.experience-card {
  opacity: 0;
  animation: fadeIn 0.4s ease-out forwards;
}

.header-contact {
  animation-delay: 0.05s;
}
.header-content {
  animation-delay: 0.1s;
}
.tab-buttons {
  animation-delay: 0.15s;
}

#projects.active,
#experiences.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  animation: none;
  opacity: 1;
}

.project-card,
.experience-card {
  animation-delay: calc(0.2s + (var(--index, 0) * 0.05s));
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

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

@keyframes fadeInGrid {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cardAppear {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1200px) {
  .header-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  :root {
    --spacing-lg: 24px;
    --spacing-md: 20px;
    --spacing-sm: 12px;
  }

  .header-content h1 {
    font-size: 2.8rem;
  }

  .bio-container {
    gap: var(--spacing-md);
  }

  .project-grid,
  .experience-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-lg: 20px;
    --spacing-md: 16px;
    --spacing-sm: 10px;
  }

  body {
    padding: var(--spacing-md);
  }

  header {
    height: auto;
    min-height: 110px;
    padding: var(--spacing-md);
  }

  .header-contact {
    margin-top: 0;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .header-contact-link {
    padding: 5px 12px;
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .header-content {
    position: relative;
    left: 0;
    transform: none;
    margin-top: var(--spacing-md);
    text-align: center;
  }

  .header-content h1 {
    font-size: 2.4rem;
    margin: 0 0 var(--spacing-xs) 0;
  }

  .title-location {
    align-items: center;
  }

  .bio-section {
    height: auto;
  }

  .bio-container {
    flex-direction: column;
    height: auto;
    padding: var(--spacing-md);
    text-align: center;
    gap: var(--spacing-md);
  }

  .profile-image-container {
    width: 120px;
    height: 120px;
  }

  #projects.active,
  #experiences.active {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .project-card {
    height: auto;
    min-height: 160px;
  }

  .project-image-container {
    width: 140px;
    height: 140px;
  }

  .project-content {
    padding: var(--spacing-md);
  }

  .project-header h3 {
    font-size: 1.1rem;
  }

  .project-preview p {
    font-size: 0.85rem;
  }

  .tech-tag {
    font-size: 0.75rem;
    padding: 3px 8px;
  }

  .experience-card {
    height: auto;
    min-height: 140px;
    padding: var(--spacing-md);
  }

  .company-logo {
    width: 70px;
    height: 70px;
  }
}

@media (max-width: 576px) {
  body {
    padding: var(--spacing-sm);
  }

  header {
    padding: var(--spacing-sm);
  }

  .header-contact {
    gap: 6px;
  }

  .header-contact-link {
    padding: 4px 10px;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  .header-contact-link svg {
    width: 14px;
    height: 14px;
  }

  .header-content h1 {
    font-size: 2rem;
  }

  .title-location p {
    font-size: 0.95rem;
  }

  .bio-container {
    padding: var(--spacing-sm);
    gap: var(--spacing-sm);
  }

  .profile-image-container {
    width: 100px;
    height: 100px;
  }

  .bio-content h2 {
    font-size: 1.5rem;
  }

  .bio-content p {
    font-size: 0.95rem;
  }

  .tab-buttons {
    gap: 6px;
  }

  .tab-btn {
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .project-card {
    flex-direction: column;
    height: auto;
  }

  .project-image-container {
    width: 100%;
    height: 180px;
    order: -1;
  }

  .project-content {
    padding: var(--spacing-md);
  }

  .project-preview {
    margin-top: var(--spacing-sm);
  }

  .project-tech {
    margin: var(--spacing-sm) 0;
  }

  .experience-card {
    padding: var(--spacing-sm);
  }

  .experience-header {
    gap: var(--spacing-sm);
  }

  .company-logo {
    width: 60px;
    height: 60px;
  }

  .experience-title h3 {
    font-size: 1rem;
  }

  .experience-preview {
    font-size: 0.85rem;
  }
}

@media (max-width: 360px) {
  .header-content h1 {
    font-size: 1.8rem;
  }

  .project-image-container {
    height: 160px;
  }

  .project-content,
  .experience-card {
    padding: 12px;
  }

  .project-header h3,
  .experience-title h3 {
    font-size: 0.95rem;
  }

  .timeframe {
    font-size: 0.75rem;
  }

  .company-logo {
    width: 50px;
    height: 50px;
  }

  .project-preview p,
  .experience-preview {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}
