/* THEME IMPORTS */
@import url('themes/dark.css');
@import url('themes/light.css');
@import url('themes/transitions.css');

/* COMPONENT IMPORTS */
@import url('components/language-transitions.css');

/* LAYOUT IMPORTS */
@import url('components/layout.css');

/* TYPOGRAPHY IMPORTS */
@import url('components/typography.css');

/* PRINT STYLES */
@import url('components/print-style.css');

/* BASIC STYLES */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

:root {
  /* transition */
  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease-in-out;
  --transition-smooth: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* RESET */

*, *::before, *::after {
  margin: 0;
  padding: 0;
}

li { list-style: none; }

button {
  background: none;
  border: none;
  cursor: pointer;
}

input, textarea {
  background: none;
}

:focus { outline-color: var(--light-gray); }

body { 
  background: var(--smoky-black);
  /* Remove individual transition as it's handled by the global theme transition system */
}





/* REUSED STYLE */

.sidebar,
article {
  background: var(--eerie-black-2);
  border: 1px solid var(--jet);
  border-radius: 20px;
  box-shadow: var(--shadow-1);
}

.separator {
  background: var(--jet);
}

.icon-box {
  background: var(--border-gradient-onyx);
  border-radius: 8px;
  font-size: 16px;
  color: var(--light-gray);
  box-shadow: var(--shadow-1);
}

.icon-box::before {
  background: var(--eerie-black-1);
  border-radius: inherit;
}

.icon-box ion-icon { --ionicon-stroke-width: 35px; }

article.active {
  animation: fade 0.5s ease backwards;
}

@keyframes fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.has-scrollbar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.has-scrollbar::-webkit-scrollbar-track {
  background: var(--onyx);
  border-radius: 5px;
}

.has-scrollbar::-webkit-scrollbar-thumb {
  background: var(--light-gray);
  border-radius: 5px;
}

.has-scrollbar::-webkit-scrollbar-button { width: 20px; }

.content-card {
  background: var(--border-gradient-onyx);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  cursor: pointer;
}

.content-card::before {
  background: var(--bg-gradient-jet);
  border-radius: inherit;
}





/* MAIN */





/* SIDEBAR */

.sidebar {
  transition: var(--transition-2);
}

.info_more-btn {
  border-radius: 0 15px;
  font-size: 13px;
  color: var(--light-gray);
  background: var(--border-gradient-onyx);
  box-shadow: var(--shadow-2);
  transition: var(--transition-1);
}

.info_more-btn::before {
  border-radius: inherit;
  background: var(--bg-gradient-jet);
  transition: var(--transition-1);
}

.info_more-btn:hover,
.info_more-btn:focus { background: var(--bg-gradient-gray-1); }

.info_more-btn:hover::before,
.info_more-btn:focus::before { background: var(--bg-gradient-gray-2); }

.sidebar-info_more {
  transition: var(--transition-2);
}

/* Contact copyable functionality */
.contact-copyable {
  cursor: pointer;
  transition: var(--transition-1);
  user-select: none;
  outline: none;
  border-radius: 2px;
}

.contact-copyable:hover {
  color: var(--orange-yellow-crayola);
}

.contact-copyable:focus-visible {
  outline: 2px solid var(--orange-yellow-crayola);
  outline-offset: 2px;
}

/* Tooltip for desktop */
.contact-copyable::after {
  content: attr(data-tooltip);
  background: var(--jet);
  border-radius: 4px;
  transition: all var(--transition-1);
  border: 1px solid var(--light-gray-70);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.contact-copyable::before {
  content: '';
  border: 6px solid transparent;
  border-top-color: var(--jet);
  transition: all var(--transition-1);
}

.contact-copyable:hover::after,
.contact-copyable:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Copy button for mobile */
.copy-btn {
  background: transparent;
  border: none;
  color: var(--light-gray-70);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-1);
  outline: none;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: scale(1.05);
}

.copy-btn:active {
  transform: scale(0.95);
}

.copy-btn:focus-visible {
  outline: 2px solid var(--light-gray-70);
  outline-offset: 2px;
}

.copy-btn ion-icon {
  font-size: 16px;
  transition: var(--transition-1);
}

/* Copied state */
.contact-copyable.copied::after {
  content: 'Copied!';
  opacity: 1;
  visibility: visible;
}

.contact-copyable.copied::before {
  opacity: 1;
  visibility: visible;
}

.social-item .social-link {
  color: var(--light-gray-70);
  font-size: 18px;
}

/* Font Awesome icons in social links */
.social-item .social-link i {
  font-size: 18px;
  transition: var(--transition-1);
}

.social-item .social-link:hover { color: var(--light-gray); }

/* ABOUT */




/* RESUME */

/* education and experience */

.timeline-list {
  font-size: var(--fs-6);
}

.timeline-item:not(:last-child)::before {
  content: "";
  background: var(--jet);
}

.timeline-item::after {
  content: "";
  background: var(--text-gradient-white);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--jet);
}

/* skills */


.skill-progress-bg {
  background: var(--jet);
  border-radius: 10px;
}

.skill-progress-fill {
  background: var(--text-gradient-white);
  border-radius: inherit;
}





/* LANGUAGE TOGGLE */

.language-toggle {
  background: var(--border-gradient-onyx);
  border-radius: 10px;
  box-shadow: var(--shadow-2);
}

.language-toggle::before {
  background: var(--bg-gradient-jet);
  border-radius: inherit;
}

.lang-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-1);
}

.lang-btn:hover {
  color: var(--orange-yellow-crayola);
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn.active {
  background: var(--bg-gradient-gray-2);
  color: var(--white-1);
  box-shadow: var(--shadow-1);
}

.lang-btn.active::before {
  content: "";
  background: var(--text-gradient-white);
  border-radius: inherit;
  opacity: 0.1;
}

/* PDF Download Styles */
.pdf-download-btn {
  background: var(--border-gradient-onyx);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition-1);
  box-shadow: var(--shadow-2);
}

.pdf-download-btn::before {
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  transition: var(--transition-1);
}

.pdf-download-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--orange-yellow-crayola);
}

.pdf-download-btn:hover::before {
  background: rgba(255, 255, 255, 0.05);
}

.pdf-download-btn ion-icon {
  font-size: 16px;
}

.pdf-language-selector {
  background: var(--border-gradient-onyx);
  border-radius: 10px;
  box-shadow: var(--shadow-3);
  transition: var(--transition-1);
}

.pdf-language-selector::before {
  background: var(--bg-gradient-jet);
  border-radius: inherit;
}

/* Bridge element to prevent dropdown from closing */
.pdf-language-selector::after {
  background: transparent;
}

.pdf-lang-option {
  background: transparent;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-1);
}

.pdf-lang-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white-2);
}

.pdf-lang-option:active {
  background: rgba(255, 255, 255, 0.12);
  transform: scale(0.98);
}

/* Theme Toggle Styles */
.theme-toggle-btn {
  background: var(--border-gradient-onyx);
  color: var(--white-2);
  border: none;
  border-radius: 10px;
  font-size: 24px; /* 60% of 40px = 24px for icon */
  cursor: pointer;
  transition: var(--transition-1);
  box-shadow: var(--shadow-2);
}

.theme-toggle-btn::before {
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  transition: var(--transition-1);
}

.theme-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--orange-yellow-crayola);
  transform: scale(1.05);
}

.theme-toggle-btn:hover::before {
  background: rgba(255, 255, 255, 0.05);
}

.theme-toggle-btn ion-icon {
  transition: var(--transition-1);
  pointer-events: none;
  font-size: inherit;
  --ionicon-width: 60%;
  --ionicon-height: 60%;
}

.theme-toggle-btn:hover ion-icon {
  transform: rotate(15deg);
}

/* Disable all tooltips on ion-icons */
.theme-toggle-btn ion-icon::before,
.theme-toggle-btn ion-icon::after,
.social-link ion-icon::before,
.social-link ion-icon::after {
  display: none !important;
}

.theme-toggle-btn ion-icon[title],
.social-link ion-icon {
  pointer-events: none;
}

/* Theme transition */
* {
  transition: background-color var(--transition-1), 
              color var(--transition-1), 
              border-color var(--transition-1),
              box-shadow var(--transition-1) !important;
}





/* RESPONSIVE */

/* responsive smaller than 320px screen (very small devices) */
@media (max-width: 320px) {
  main {
    margin: 8px 6px;
    margin-bottom: 50px;
  }
  
  .sidebar {
    max-height: 70px; /* Even smaller for very small screens */
    margin-bottom: 10px;
  }
  
  .sidebar.active { 
    max-height: 380px; /* Increased to ensure social icons are visible */
  }
  
  .sidebar-info {
    gap: 6px;
    padding: 12px;
  }
  
  .sidebar, article {
    padding: 15px;
  }
  
  /* Ensure timeline dates stay on same line as title for very small screens */
  .timeline-item div[style*="display: flex"] {
    flex-wrap: nowrap !important;
    align-items: baseline !important;
  }
  
  .timeline-item .timeline-item-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    margin-right: 6px;
  }
  
  .timeline-item span[style*="white-space: nowrap"] {
    flex-shrink: 0;
    margin-left: 6px !important;
  }
  
  .contact-info {
    max-width: calc(100% - 40px);
  }
  
  .header-controls {
    gap: 6px;
  }
  
  .social-list {
    padding-bottom: 12px; /* Adequate bottom padding for small screens */
  }
  
  .lang-btn, .theme-toggle-btn, .pdf-download-btn {
    padding: 6px 8px;
    min-height: 44px; /* Ensure minimum touch target size */
    min-width: 44px;
  }
  
  .theme-toggle-btn {
    width: 44px;
    height: 44px;
    padding: 0;
  }
  
  .theme-toggle-btn ion-icon {
    width: 60%;
    height: 60%;
    --ionicon-width: 60%;
    --ionicon-height: 60%;
  }
  
  .info_more-btn {
    padding: 6px 10px;
  }
}

/* responsive smaller than 450px screen */

/* Force proper timeline layout - override inline styles */
.timeline-item div[style*="display: flex"] {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  flex-wrap: nowrap !important;
  gap: 8px !important;
}

.timeline-item div[style*="display: flex"] h4 {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  hyphens: auto !important;
  white-space: normal !important;
  overflow: hidden !important;
}

.timeline-item div[style*="display: flex"] span {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  text-align: right !important;
  margin-left: 8px !important;
  min-width: auto !important;
}

/* Legacy timeline items support (fallback for inline styles) */
.timeline-item div[style*="flex"] {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.timeline-item div[style*="flex"] h4 {
  margin: 0 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.timeline-item div[style*="flex"] span {
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  opacity: 0.8 !important;
  margin-left: 0 !important;
}

/* Center social icons in sidebar for small screens and adjust header for screens up to 450px */
@media (max-width: 450px) {
  /* Fix sidebar spacing on mobile */
  .sidebar {
    max-height: 90px; /* Optimized height for better vertical centering */
    margin-bottom: 15px;
  }
  
  .sidebar.active { 
    max-height: 420px; /* Increased to ensure social icons are visible */
  }
  
  .sidebar-info {
    gap: 8px; /* Reduce gap to minimize spacing */
    padding: 15px; /* Add padding for better touch targets */
    display: flex;
    justify-content: center;
    align-items: center; /* Ensure vertical centering */
    min-height: 60px; /* Minimum height for proper centering */
  }
  
  .info_more-btn {
    position: relative; /* Change from absolute positioning */
    top: auto;
    right: auto;
    padding: 8px 12px;
    white-space: nowrap;
  }
  
  /* Ensure timeline dates stay on same line as title */
  .timeline-item div[style*="display: flex"] {
    flex-wrap: nowrap !important;
    align-items: baseline !important;
  }
  
  .timeline-item .timeline-item-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    margin-right: 8px;
  }
  
  .timeline-item span[style*="white-space: nowrap"] {
    flex-shrink: 0;
    margin-left: 8px !important;
  }
  
  /* LANGUAGE TOGGLE */
  .header-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .header-controls {
    align-self: flex-end;
    flex-direction: row;
    gap: 6px;
    flex-wrap: nowrap;
  }
  .pdf-language-selector {
    right: 0; /* Keep right-aligned for consistency */
    left: auto;
  }
  .social-list {
    justify-content: center !important;
    padding-bottom: 15px; /* Extra bottom padding on mobile for hover effects */
  }
  
  /* Improve header controls spacing on mobile */
  .pdf-download-btn {
    min-width: auto;
    padding: 8px 12px;
  }
  
  .theme-toggle-btn {
    padding: 8px;
    min-width: auto;
  }
  
  .language-toggle {
    min-width: fit-content;
  }
}

/* Additional responsive fix for extremely small screens */
@media (max-width: 280px) {
  .timeline-item .timeline-item-title {
    margin-right: 4px;
  }
}

/* responsive larger than 450px screen */

@media (min-width: 451px) {
  /* Restore normal sidebar spacing for larger screens */
  .sidebar {
    max-height: 112px; /* Restore original height */
  }
  
  .sidebar.active { 
    max-height: 430px; /* Increased to accommodate social icons with proper spacing */
  }
  
  .sidebar-info {
    gap: 15px; /* Restore larger gap */
    padding: 0; /* Remove mobile padding */
  }
  
  .info_more-btn {
    position: absolute; /* Restore absolute positioning */
    top: -15px;
    right: -15px;
    padding: 10px 15px;
  }
  
  /* client */
  .clients-item { min-width: calc(33.33% - 10px); }
  /* LANGUAGE TOGGLE */
  .header-wrapper {
    flex-direction: row;
    align-items: center;
  }
  .header-controls {
    align-self: auto;
    flex-direction: row;
    gap: 10px;
  }
  .pdf-language-selector {
    right: 0;
    left: auto;
  }
  
  .pdf-download-btn {
    padding: 10px 15px;
  }
  
  /* Legacy timeline items medium screen support */
  .timeline-item div[style*="flex"] {
    flex-direction: row !important;
    align-items: baseline !important;
  }
  
  .timeline-item div[style*="flex"] span {
    align-self: auto !important;
    margin-left: 12px !important;
  }
  
  /* Add adequate spacing for social icons in medium screens */
  .social-list {
    padding-bottom: 18px; /* Ensure social icons have space for hover effects */
  }
}

/* responsive larger than 640px screen (medium tablets) */
@media (min-width: 640px) {
  .sidebar, article {
    width: 600px;
    padding: 25px;
  }
  
  main {
    margin-top: 50px;
    margin-bottom: 50px;
  }
  
  .sidebar {
    max-height: 100px;
    margin-bottom: 25px;
  }
  
  .sidebar.active { 
    max-height: 350px; 
  }
  
  .sidebar-info {
    min-height: 85px;
    display: flex;
    justify-content: center;
    align-items: center; /* Perfect vertical centering */
    padding: 10px 0; /* Add some vertical padding for better centering */
  }
  
  .header-controls {
    gap: 12px;
  }
  
  .lang-btn, .theme-toggle-btn, .pdf-download-btn {
    min-height: 48px;
    min-width: 48px;
  }
  
  .theme-toggle-btn {
    width: 48px;
    height: 48px;
    padding: 0;
  }
}

/* Landscape orientation optimizations */
@media (max-height: 500px) and (orientation: landscape) {
  main {
    margin-top: 20px;
    margin-bottom: 40px;
  }
  
  .sidebar {
    max-height: 80px;
    margin-bottom: 15px;
  }
  
  .sidebar.active {
    max-height: 300px;
  }
  
  .article-title {
    margin-bottom: 15px;
  }
  
  .timeline-list {
    margin-top: 15px;
  }
  
  /* iPad-specific fix: Ensure time/period aligns with first line of wrapped titles */
  .timeline-item div[style*="display: flex"][style*="align-items: baseline"] {
    flex-wrap: nowrap !important;
    align-items: baseline !important;
  }
  
  .timeline-item .timeline-item-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    margin-right: 8px;
  }
  
  .timeline-item div[style*="display: flex"] span[style*="white-space: nowrap"] {
    flex-shrink: 0;
    margin-left: 8px !important;
  }
}

/* responsive larger than 580px screen */

@media (min-width: 580px) {

  /* REUSED STYLE */

  .sidebar, article {
    width: 520px;
    margin-inline: auto;
    padding: 30px;
  }

  .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 18px;
  }



  /* MAIN */

  main {
    margin-top: 60px;
    margin-bottom: 100px;
  }

  /* SIDEBAR */

  .sidebar {
    max-height: 180px;
    margin-bottom: 30px;
  }

  .sidebar.active { max-height: 550px; }

  .sidebar-info { 
    gap: 0px; 
    padding: 0; /* Remove any mobile padding */
  }

  .info_more-btn {
    position: absolute; /* Restore absolute positioning */
    top: -30px;
    right: -30px;
    padding: 10px 15px;
  }

  .separator { margin: 32px 0; }

  .contacts-list { gap: 20px; }

  .contact-info {
    max-width: calc(100% - 64px);
    width: calc(100% - 64px);
  }

  /* ABOUT */

  .about .article-title { margin-bottom: 20px; }

  .about-text { margin-bottom: 40px; }

  .content-card {
    padding: 30px;
    padding-top: 25px;
  }

  /**
   * #RESUME
   */

  .timeline-list { margin-left: 65px; }

  .timeline-item:not(:last-child)::before { left: -40px; }

  .timeline-item::after {
    height: 8px;
    width: 8px;
    left: -43px;
  }

  .skills-item:not(:last-child) { margin-bottom: 25px; }

  /* Fix timeline alignment for tablet screens - ensure time/period stays on first line */
  .timeline-item div[style*="display: flex"][style*="align-items: baseline"] {
    flex-wrap: nowrap !important;
    align-items: baseline !important;
  }
  
  .timeline-item .timeline-item-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    margin-right: 8px;
  }
  
  .timeline-item div[style*="display: flex"] span[style*="white-space: nowrap"] {
    flex-shrink: 0;
    margin-left: 8px !important;
  }





}





/**
 * CERTIFICATION SECTION - Responsive styles
 */

/* Base styles for mobile (less than 768px) - normal timeline display */
.certification-grid {
  display: block !important;
  list-style: none;
  padding: 0;
}

.certification-item {
  grid-column: unset !important;
  grid-row: unset !important;
}

.certification-gap {
  display: none !important;
}

/**
 * responsive larger than 768px screen
 */

@media (min-width: 768px) {

  /**
   * REUSED STYLE
    color: var(--light-gray-70) !important;
  }
  .copy-btn.copied {
    color: var(--light-gray-70) !important;
  }
  .copy-btn ion-icon {
    color: var(--light-gray-70) !important;
   */

  .sidebar, article { width: 700px; }

  .has-scrollbar::-webkit-scrollbar-button { width: 100px; }

  /**
   * SIDEBAR - iPad optimization
   */
   
  .sidebar {
    max-height: 115px; /* Increased to accommodate balanced spacing */
  }
  
  .sidebar.active { 
    max-height: 500px;
  }
  
  .sidebar-info {
    min-height: 85px; /* Increased to match tablet proportions for consistency */
    display: flex;
    justify-content: center;
    align-items: center; /* Perfect vertical alignment */
    padding: 8px 0; /* Consistent padding with tablet */
  }

  .contacts-list {
    grid-template-columns: 1fr 1fr;
    gap: 30px 15px;
  }



  /**
   * ABOUT
   */

  /* testimonials modal */

  .testimonials-modal {
    gap: 35px;
    max-width: 680px;
  }

  /**
   * CERTIFICATION
   */
  
  /* Restore grid layout for 768px+ */
  .certification-grid {
    display: grid !important;
    grid-template-columns: 1fr 0.2fr 1fr;
    gap: 0;
    list-style: none;
    padding: 0;
  }

  .certification-gap {
    display: block !important;
  }

}

/**
 * responsive larger than 1024px screen
 */

@media (min-width: 1024px) {

  /**
   * CUSTOM PROPERTY
   */

  :root {

    /**
    * shadow
    */

    --shadow-1: -4px 8px 24px hsla(0, 0%, 0%, 0.125);
    --shadow-2: 0 16px 30px hsla(0, 0%, 0%, 0.125);
    --shadow-3: 0 16px 40px hsla(0, 0%, 0%, 0.125);

  }



  /**
   * REUSED STYLE
   */

  .sidebar, article {
    width: 950px;
    box-shadow: var(--shadow-5);
  }



  /**
   * MAIN 
   */

  main { margin-bottom: 60px; }

  .main-content {
    position: relative;
    width: max-content;
    margin: auto;
  }



  /**
   * CONTACT COPY FUNCTIONALITY - Desktop
   */
   
  .copy-btn {
    display: none;
  }
  
  .contact-copyable {
    cursor: pointer;
  }
  
  .contact-copyable::after,
  .contact-copyable::before {
    display: block;
  }
}





/**
 * responsive larger than 1250px screen
 */

@media (min-width: 1250px) {

  /**
   * RESET
   */

  body::-webkit-scrollbar { width: 20px; }

  body::-webkit-scrollbar-track { background: var(--smoky-black); }

  body::-webkit-scrollbar-thumb {
    border: 5px solid var(--smoky-black);
    background: hsla(0, 0%, 100%, 0.1);
    border-radius: 20px;
    box-shadow: inset 1px 1px 0 hsla(0, 0%, 100%, 0.11),
                inset -1px -1px 0 hsla(0, 0%, 100%, 0.11);
  }

  body::-webkit-scrollbar-thumb:hover { background: hsla(0, 0%, 100%, 0.15); }

  body::-webkit-scrollbar-button { height: 60px; }



  /**
   * REUSED STYLE
   */

  .sidebar, article { width: auto; }

  article { min-height: 100%; }



  /**
   * MAIN
   */

  main {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
  }

  .main-content {
    min-width: 75%;
    width: 75%;
    margin: 0;
  }



  /**
   * SIDEBAR
   */

  .sidebar {
    position: sticky;
    top: 60px;
    max-height: max-content;
    height: 100%;
    margin-bottom: 0;
    padding-top: 25px;
    z-index: 1;
  }

  .sidebar-info { flex-direction: column; }

  .info_more-btn { display: none; }

  .sidebar-info_more {
    opacity: 1;
    visibility: visible;
  }

  .contacts-list { grid-template-columns: 1fr; }

  .separator:last-of-type {
    margin: 15px 0;
    opacity: 0;
  }

  .social-list { justify-content: center; }



  /**
	 * RESUME
	 */

}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  /* Add visual indicator for touch devices */
  .pdf-download-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.7;
    transition: transform var(--transition-1);
  }
  
  /* Rotate arrow when dropdown is active */
  .pdf-download-container:has(.pdf-language-selector.active) .pdf-download-btn::after {
    transform: translateY(-50%) rotate(180deg);
  }
  
  /* Fallback for browsers that don't support :has() */
  .pdf-language-selector.active ~ .pdf-download-btn::after {
    transform: translateY(-50%) rotate(180deg);
  }
  
  /* Adjust button padding to accommodate arrow */
  .pdf-download-btn {
    padding-right: 24px !important;
  }
  
  /* Enhanced touch feedback */
  .pdf-download-btn:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.1);
  }
  
  .pdf-lang-option:active {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: scale(0.98);
  }
}

/* Focus and keyboard navigation improvements */
@media (max-width: 768px) {
  /* Copy button visibility on mobile */
  .copy-btn {
    display: flex;
  }
  
  /* Disable text copying on mobile - only button should work */
  .contact-copyable {
    cursor: default;
    pointer-events: none;
  }
  
  /* Hide tooltip on mobile */
  .contact-copyable::after,
  .contact-copyable::before {
    display: none;
  }
  
  /* Ensure all interactive elements have visible focus indicators */
  button:focus-visible,
  .lang-btn:focus-visible,
  .theme-toggle-btn:focus-visible,
  .pdf-download-btn:focus-visible,
  [data-sidebar-btn]:focus-visible,
  .copy-btn:focus-visible {
    outline: 2px solid var(--light-gray-70);
    outline-offset: 2px;
  }
  
  /* Skip link for accessibility */
  .skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--orange-yellow-crayola);
    color: var(--smoky-black);
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: 4px;
  }
  
  .skip-link:focus {
    top: 6px;
  }
}

/* Tablet and medium screen adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Show both tooltip and copy button on tablets for flexibility */
  .copy-btn {
    display: flex;
  }
  
  .contact-copyable::after,
  .contact-copyable::before {
    display: block;
  }
}