/* 1. GLOBAL STYLES */
@font-face {
  font-family: 'Bebas Kai';
  font-style: normal;
  font-weight: 400;
  src: local('Bebas Kai'), url('https://fonts.cdnfonts.com/s/14605/BebasKai-Regular.woff') format('woff');
}

html, body {
  height: 100%;
  margin: 0;
  font-family: 'Bebas Kai', sans-serif;
  background: #1e1e1e;
  color: #e0e0e0;
  font-style: normal;
  font-weight: normal;
  overflow-x: hidden;
  /* Mobile performance improvements */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  position: relative;
}

html {
  overflow-y: scroll;
  /* Mobile smooth scrolling */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

::-webkit-scrollbar {
  display: none;
}

a {
  text-decoration: none;
  color: #e0e0e0;
  /* Touch-friendly improvements */
  min-height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

a:hover {
  color: #FFD700;
}

h1, h2 {
  color: #e0e0e0;
}

h1 a:hover,
h2:hover {
  color: #FFD700;
}

.buffer {
  height: 30px;
}

/* 2. LAYOUT & STRUCTURE */
header {
  position: relative;
  background-color: #1e1e1e;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 8%;
  font-size: 16px;
  text-transform: uppercase;
}

header a {
  text-decoration: none;
  color: #e0e0e0;
}

.nav-left {
  position: absolute;
  left: 8%;
  display: flex;
  gap: 15px;
}

.nav-left a:hover{
  text-decoration: none;
  color: #FFD700;
}

.logo {
  font-size: 26px;
  line-height: 1.3;
  text-align: center;
}

.logo-wrapper {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

/* Mobile Bottom Navigation */
.mobile-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 10px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: transparent;
  padding: 15px 20px;
  z-index: 1001;
  transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
  transform: translateY(0%);
}

.mobile-nav.nav-hidden {
  transform: translateY(500%);
}

.mobile-nav a {
  flex: 1;
  text-align: center;
  padding: 12px 8px;
  font-size: 14px;
  text-transform: uppercase;
  color: #e0e0e0;
  text-decoration: none;
  border-radius: 8px;
  background-color: #2a2a2a;
  border: 2px solid #444;
  transition: all 0.2s ease;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.mobile-nav a:hover,
.mobile-nav a:active {
  color: #FFD700;
  border-color: #FFD700;
  transform: translateY(-1px);
}

.mobile-nav a:active {
  transform: translateY(0);
}

main {
  max-width: 1500px;
  margin: 40px auto;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(30px);
  /* Animation will be controlled by JavaScript after videos load */
}

/* 3. GRID SYSTEM */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px 30px;
  max-width: 1500px;
  margin: 0 auto;
}

.grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.grid-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid #444;
  background-color: #2a2a2a;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1), box-shadow 0.3s, border-color 0.3s ease-in-out;
  max-width: 560px;
  /* Touch-friendly improvements */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.grid-item:hover {
  transform: translateY(-8px) scale(1.03) rotate(-1deg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.18);
  border-color: #FFD700;
}

/* Touch-friendly hover alternative for mobile */
@media (hover: none) and (pointer: coarse) {
  .grid-item:hover {
    transform: none;
    box-shadow: none;
    border-color: #444;
  }
  
  .grid-item:active {
    transform: translateY(-2px) scale(1.01);
    border-color: #FFD700;
  }
}

.grid-item .overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.grid-item:hover .overlay {
  opacity: 1;
}

.grid-item .overlay h2,
.grid-item .overlay p {
  margin: 0;
  color: #ffffff;
  text-align: center;
  font-family: 'Bebas Kai', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

/* Specific styles for video pages grid */
main .grid .grid-item {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: stretch;
  padding: 0;
}

main .grid .grid-item lite-youtube {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}

main .grid .grid-item iframe {
  width: 100%;
  height: 100%;
  border: 0;
  outline: none;
}

/* Override for NoahJ page to be 1x1 */
.square-grid-page main .grid-item {
  aspect-ratio: 1 / 1;
}

/* Style for vertical YouTube Shorts */
main .grid .grid-item.grid-item-short {
  aspect-ratio: 9 / 16;
}

/* 4. PAGE-SPECIFIC GRIDS */

/* Category Sections for Homepage */
.category-section {
  margin-bottom: 60px;
}

.category-title {
  font-size: 2.5rem;
  color: #FFD700;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-bottom: 2px solid #FFD700;
  padding-bottom: 10px;
  display: inline-block;
}

.category-section .grid {
  margin-bottom: 0;
}

/* Recommendations Section */
.recommendations-section {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #444;
}

.recommendations-section h1 {
  margin-bottom: 30px;
}

.recommendations-title {
  font-size: 2.5rem;
  color: #FFD700;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-align: center;
}

.recommendations-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin: 0 auto;
}

/* Dexerto Page - Two Row Layout */
.two-row-layout .grid-landscape {
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 30px;
}

.two-row-layout .grid-shorts {
  grid-template-columns: repeat(5, 1fr);
}

/* NoahJ Page - 1x1 Grid */
.square-grid-page main .grid-item {
  aspect-ratio: 1 / 1;
}

/* Ensure recommendations section uses regular aspect ratio even on square pages */
.square-grid-page .recommendations-section .grid-item {
  aspect-ratio: 16 / 9;
}

/* 5. CONTACT PAGE */
.contact-container {
  max-width: 600px;
  margin: 60px auto;
  padding: 0 8%;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-bottom: 4px;
  font-size: 14px;
  /* Mobile-friendly label improvements */
  display: block;
  font-weight: bold;
}

input, textarea {
  background-color: #333;
  color: #e0e0e0;
  border: 1px solid #555;
  border-radius: 4px;
  padding: 12px;
  margin-bottom: 20px;
  font-family: 'Bebas Kai', sans-serif;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
  /* Mobile-friendly input improvements */
  -webkit-appearance: none;
  appearance: none;
}

textarea {
  resize: vertical;
  height: 120px;
  /* Mobile-friendly textarea improvements */
  min-height: 100px;
}

form button[type="submit"] {
  padding: 12px 20px;
  font-family: 'Bebas Kai', sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  background-color: #FFD700;
  color: #1e1e1e;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  /* Mobile-friendly button improvements */
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}

form button[type="submit"]:hover {
  background-color: #e6c200;
}

.form-status {
  display: none;
  text-align: center;
  margin-top: 20px;
}

.form-status h3 {
  color: #FFD700;
  font-size: 22px;
}

.form-status p {
  color: #e0e0e0;
  font-size: 16px;
}

/* Mobile-friendly form improvements */
@media (max-width: 768px) {
  .buffer {
    height: 0;
  }
  
  .contact-container {
    padding: 0 15px;
    margin: 30px auto;
  }
  
  label {
    font-size: 16px;
    margin-bottom: 8px;
  }
  
  input, textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 15px;
    margin-bottom: 25px;
    border-radius: 6px;
  }
  
  textarea {
    min-height: 120px;
  }
  
  form button[type="submit"] {
    padding: 15px 20px;
    font-size: 18px;
    border-radius: 6px;
    margin-top: 10px;
  }
  
  .logo {
    font-size: 32px;
  }
}

/* 6. LITE YOUTUBE EMBED OVERRIDES */
lite-youtube > .lty-playbtn {
    display: block;
    width: 100%;
    height: 100%;
    background: no-repeat center/68px 48px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="red"/><path d="M45 24 27 14v20" fill="white"/></svg>');
    position: absolute;
    cursor: pointer;
    z-index: 1;
    filter: grayscale(100%);
    transition: filter .1s cubic-bezier(0, 0, 0.2, 1);
    border: 0;
    transition: transform 0.5s cubic-bezier(.4,0,.1,1);
    transform: scale(1);
    /* Touch-friendly improvements */
    min-height: 44px;
    min-width: 44px;
}

lite-youtube:hover > .lty-playbtn,
lite-youtube .lty-playbtn:focus {
    filter: none;
    transform: scale(1.1);
}

lite-youtube[data-title] > .lty-playbtn {
    background-image: none;
}

lite-youtube[data-title]:hover > .lty-playbtn {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 68 48"><path d="M66.52 7.74c-.78-2.93-2.49-5.41-5.42-6.19C55.79.13 34 0 34 0S12.21.13 6.9 1.55c-2.93.78-4.63 3.26-5.42 6.19C.06 13.05 0 24 0 24s.06 10.95 1.48 16.26c.78 2.93 2.49 5.41 5.42 6.19C12.21 47.87 34 48 34 48s21.79-.13 27.1-1.55c2.93-.78 4.64-3.26 5.42-6.19C67.94 34.95 68 24 68 24s-.06-10.95-1.48-16.26z" fill="red"/><path d="M45 24 27 14v20" fill="white"/></svg>');
}

/* Mobile-specific YouTube embed improvements */
@media (max-width: 768px) {
  lite-youtube > .lty-playbtn {
    background-size: 48px 34px; /* Smaller play button on mobile */
  }
  
  /* Ensure YouTube embeds are responsive */
  main .grid .grid-item lite-youtube {
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
  }
  
  main .grid .grid-item iframe {
    width: 100%;
    height: 100%;
    border: 0;
    outline: none;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  /* Mobile-friendly navigation improvements */
  .nav-left a {
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.2s ease;
  }
  
  .nav-left a:hover,
  .nav-left a:active {
    background-color: rgba(255, 215, 0, 0.1);
  }
  
  /* Ensure logo text is readable on mobile */
  .logo {
    word-wrap: break-word;
    hyphens: auto;
  }
}

/* 7. RESPONSIVE STYLES */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 20px 15px 10px;
    gap: 15px;
  }
  
  .nav-left {
    position: static;
    margin-bottom: 0;
    gap: 20px;
    display: none; /* Hide top navigation on mobile */
  }
  
  .logo {
    font-size: 32px;
  }
  
  /* Show mobile bottom navigation */
  .mobile-nav {
    display: flex;
  }
  
  /* Add bottom padding to main content to account for fixed bottom nav */
  main {
    margin: 0 auto 20px;
    padding: 0 10px 100px 10px; /* Added bottom padding */
  }
  
  .grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 0 10px;
  }
  
  .grid-item {
    max-width: none;
    border-width: 2px;
  }
  
  .grid-item:hover {
    transform: translateY(-4px) scale(1.02);
  }
  
  h1 {
    font-size: 20px;
    text-align: center;
    margin: 15px 0;
    padding: 0 15px;
  }
  
  .category-title {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
  }
  
  .recommendations-title {
    font-size: 1.8rem;
    text-align: center;
  }
  
  .recommendations-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .two-row-layout .grid-landscape {
    grid-template-columns: 1fr;
  }
  
  .two-row-layout .grid-shorts {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .contact-container {
    padding: 0 15px;
    margin: 30px auto;
  }
  
  input, textarea {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 15px;
  }
  
  form button[type="submit"] {
    padding: 15px 20px;
    font-size: 18px;
  }
}

/* Additional mobile breakpoint for very small screens */
@media (max-width: 480px) {
  .buffer {
    height: 0;
  }
  
  header {
    padding: 15px 10px 5px;
  }
  
  .logo {
    font-size: 24px;
  }
  
  .nav-left {
    gap: 15px;
  }
  
  /* Adjust mobile nav for smaller screens */
  .mobile-nav {
    padding: 12px 15px;
  }
  
  .mobile-nav a {
    font-size: 13px;
    padding: 10px 6px;
  }
  
  .grid {
    gap: 12px;
    padding: 0 5px;
  }
  
  .grid-item {
    border-width: 1px;
  }
  
  h1 {
    font-size: 18px;
    margin: 15px 0;
    padding: 0 10px;
  }
  
  main {
    margin-top: 0;
    padding: 0 5px 90px 5px; /* Adjusted bottom padding for smaller screens */
  }
  
  .category-title {
    font-size: 1.5rem;
  }
  
  .recommendations-title {
    font-size: 1.5rem;
  }
  
  .two-row-layout .grid-shorts {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    padding: 0 10px;
  }
  
  input, textarea {
    padding: 12px;
  }
}

/* Tablet breakpoint for better tablet experience */
@media (min-width: 769px) and (max-width: 1024px) {
  header {
    padding: 30px 5%;
  }
  
  .nav-left {
    left: 5%;
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 15px;
  }
  
  .recommendations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .two-row-layout .grid-landscape {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .two-row-layout .grid-shorts {
    grid-template-columns: repeat(3, 1fr);
  }
  
  main {
    padding: 0 15px;
  }
}

/* 8. KEYFRAME ANIMATIONS */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes rotate-gradient {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 9. FOOTER STYLES */
footer {
  background-color: #1e1e1e;
  color: #888;
  text-align: center;
  padding: 20px;
  margin-top: 60px;
  font-size: 14px;
  position: relative;
  z-index: 1000;
}

footer p {
  margin: 0;
}

@media (max-width: 768px) {
  footer {
    padding: 15px;
    margin-top: 40px;
    font-size: 12px;
  }
}

/* CV PAGE SPECIFIC STYLES */
.cv-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* CV Header Section */
.cv-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px;
  border-bottom: 1px solid #444;
  background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
  border-radius: 8px 8px 0 0;
}

.cv-header h2 {
  font-size: 3.5rem;
  margin: 0 0 10px 0;
  color: #FFD700;
  letter-spacing: 3px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cv-header p {
  font-size: 1.4rem;
  margin: 0 0 20px 0;
  color: #ffffff;
  letter-spacing: 1px;
}

.cv-contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  font-size: 1rem;
  color: #e0e0e0;
}

.cv-contact-info span {
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  border-radius: 20px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
}

.cv-contact-info span:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: #FFD700;
  transform: translateY(-2px);
}

.cv-contact-info a {
  color: #FFD700;
  text-decoration: none;
}

.cv-contact-info a:hover {
  color: #ffffff;
}

/* CV Sections */
.cv-section {
  margin-bottom: 40px;
  padding: 30px;
  background: #2a2a2a;
  border-radius: 8px;
  border-left: 1px solid #444;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.cv-section-title {
  font-size: 2rem;
  color: #FFD700;
  margin: 0 0 25px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #444;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Work Experience */
.cv-job {
  margin-bottom: 30px;
  padding: 20px;
  background: #1e1e1e;
  border-radius: 6px;
  border: 1px solid #444;
  transition: all 0.3s ease;
}

.cv-job:hover {
  border-color: #FFD700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.1);
  transform: translateX(5px);
}

.cv-job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.cv-job-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #ffffff;
  flex: 1;
  min-width: 200px;
}

.cv-job-company {
  font-size: 1.1rem;
  color: #FFD700;
  font-style: italic;
}

.cv-job-period {
  font-size: 0.9rem;
  color: #888;
  background: #333;
  padding: 5px 10px;
  border-radius: 15px;
  white-space: nowrap;
}

.cv-job-description {
  margin: 0;
  padding-left: 20px;
}

.cv-job-description li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: #e0e0e0;
  position: relative;
}

.cv-job-description li::before {
  content: "▸";
  color: #888;
  font-weight: bold;
  position: absolute;
  left: -15px;
}

/* Skills Section - Two Column Layout */
.cv-skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.cv-skills-grid > div {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #444;
  transition: all 0.3s ease;
}

.cv-skills-grid > div:hover {
  border-color: #FFD700;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.1);
}

.cv-skills-grid h4 {
  color: #FFD700;
  font-size: 1.2rem;
  margin: 0 0 15px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #444;
  letter-spacing: 1px;
}

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

.cv-skill-list li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #e0e0e0;
  transition: all 0.3s ease;
}

.cv-skill-list li:hover {
  color: #ffffff;
  padding-left: 5px;
  background: rgba(255, 255, 255, 0.05);
}

.cv-skill-list li:last-child {
  border-bottom: none;
}

/* Education Section */
.cv-education-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  margin-bottom: 15px;
  background: #1e1e1e;
  border-radius: 6px;
  border: 1px solid #444;
  transition: all 0.3s ease;
  flex-wrap: wrap;
  gap: 10px;
}

.cv-education-entry:hover {
  border-color: #FFD700;
  transform: translateX(5px);
}

.cv-education-degree {
  font-weight: bold;
  color: #ffffff;
  font-size: 1.1rem;
}

.cv-education-institution {
  color: #FFD700;
  font-style: italic;
}

.cv-education-period {
  color: #888;
  background: #333;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Additional Information */
.cv-additional-info {
  list-style: none;
  padding: 0;
}

.cv-additional-info li {
  padding: 15px 20px;
  margin-bottom: 10px;
  background: #1e1e1e;
  border-radius: 6px;
  border-left: 1px solid #444;
  color: #e0e0e0;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.cv-additional-info li:hover {
  background: #2a2a2a;
  transform: translateX(5px);
}

.cv-additional-info strong {
  color: #FFD700;
}

/* CV Footer */
.cv-footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
  border-top: 1px solid #444;
  border-radius: 0 0 8px 8px;
  color: #888;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* Mobile Responsive CV */
@media (max-width: 768px) {
  .cv-container {
    padding: 15px;
    margin: 0 10px;
  }
  
  .cv-header {
    padding: 20px 15px;
  }
  
  .cv-header h2 {
    font-size: 2.5rem;
  }
  
  .cv-header p {
    font-size: 1.1rem;
  }
  
  .cv-contact-info {
    flex-direction: column;
    align-items: center;
  }
  
  .cv-contact-info span {
    width: 100%;
    text-align: center;
  }
  
  .cv-section {
    padding: 20px 15px;
  }
  
  .cv-section-title {
    font-size: 1.5rem;
  }
  
  .cv-job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .cv-job-title {
    min-width: auto;
  }
  
  .cv-skills-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .cv-education-entry {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .cv-job-description {
    padding-left: 15px;
  }
}

@media (max-width: 480px) {
  .cv-header h2 {
    font-size: 2rem;
  }
  
  .cv-header p {
    font-size: 1rem;
  }
  
  .cv-section {
    padding: 15px 10px;
  }
  
  .cv-job {
    padding: 15px;
  }
  
  .cv-skills-grid > div {
    padding: 15px;
  }
}