/* ====== BASE STYLES AND VARIABLES ====== */
:root {
  /* Typography */
  --main-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --heading-size-large: 4.5rem; /* 72px */
  --heading-size-medium: 2.25rem; /* 36px */
  --heading-size-small: 1.5rem; /* 24px */
  --text-size: 1.125rem; /* 18px */
  --text-size-small: 1rem; /* 16px */
  
  /* Spacing */
  --spacing-large: 4rem; /* 64px */
  --spacing-medium: 2rem; /* 32px */
  --spacing-small: 1rem; /* 16px */
  --container-padding: 2%; /* Reduced from 5% to 2% */
  
  /* Colors */
  --color-text: #333;
  --color-text-light: #ffffff;
  --color-background: #fff;
  --color-background-dark: #1a1a1a;
  --color-accent: #f5f5f5;
  --color-border: #e0e0e0;
  --color-primary: #1a1a1a;
  --color-primary-light: #000000;
  
  /* Effects */
  --transition-speed: 0.3s;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --border-radius: 8px;
  
  /* Layout */
  --container-max-width: 1800px; /* Increased from 1440px */
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--main-font);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  padding-top: 70px; /* Space for fixed navigation */
  transition: padding-top 0.3s ease;
  font-size: var(--text-size);
  line-height: 1.5;
  color: var(--color-text);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* When navbar is hidden, reduce the body padding */
body.nav-scroll-hidden {
  padding-top: 0;
}

/* Remove padding for homepage to allow full-screen sections */
body.has-homepage {
  padding-top: 0;
}

/* ====== LAYOUT COMPONENTS ====== */
.section-container {
  width: 96%; /* Increased from 90% to 96% for more fullscreen feel */
  max-width: var(--container-max-width);
  margin: 0 auto;
  position: relative;
  padding: 0 var(--container-padding);
  overflow: visible;
}

.full-screen-section {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-large) 0;
  transition: background-color 0.5s ease;
  overflow: hidden;
}

.dark-section {
  background-color: var(--color-background-dark);
  color: var(--color-text-light);
}

/* Ensure text colors in dark sections */
.dark-section h2,
.dark-section h3,
.dark-section p,
.dark-section .section-title,
.dark-section .contact-title,
.dark-section .about-subtitle {
  color: #ffffff;
}

/* Ensure text colors in light sections */
.full-screen-section:not(.dark-section) .project-title,
.full-screen-section:not(.dark-section) .project-description,
.full-screen-section:not(.dark-section) .about-content p,
.full-screen-section:not(.dark-section) h3.section-title,
.full-screen-section:not(.dark-section) h3.project-title,
.full-screen-section:not(.dark-section) .about-subtitle {
  color: var(--color-text) !important;
}

.divider {
  border: none;
  height: 1px;
  background-color: var(--color-border);
  margin: var(--spacing-large) 0;
  width: 100%;
}

/* ====== TYPOGRAPHY ====== */
.section-title {
  font-size: var(--heading-size-large);
  font-weight: 500;
  margin-bottom: var(--spacing-large);
  text-align: center;
}

.project-title {
  font-size: var(--heading-size-medium);
  font-weight: 500;
  margin-bottom: var(--spacing-small);
}

.project-description {
  font-size: var(--text-size);
  line-height: 1.6;
  margin-bottom: var(--spacing-medium);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ====== NAVIGATION ====== */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #000000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: transform 0.3s ease, opacity 0.3s ease;
  height: 70px;
  display: flex;
  align-items: center;
  transform: translateY(0);
}

#main-nav.nav-hidden {
  transform: translateY(-100%);
  opacity: 0.9;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 96%; /* Increased from 90% to 96% */
  max-width: var(--container-max-width);
  margin: 0 auto;
  height: 100%;
}

.nav-links {
  display: flex;
  gap: 30px;
  justify-content: flex-end;
  margin-left: auto;
  align-items: center;
}

.nav-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.nav-link:hover, 
.nav-link.active {
  color: #f0f0f0;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: #ffffff;
  transition: width 0.3s ease;
}

.nav-link:hover::after, 
.nav-link.active::after {
  width: 100%;
}

.home-button {
  position: fixed;
  top: 0;
  left: 2rem;
  font-weight: bold;
  font-size: 28px;
  height: 70px;
  line-height: 70px;
  color: white;
  text-decoration: none;
  z-index: 1000;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, color 0.3s ease;
  display: flex;
  align-items: center;
}

.home-button:hover {
  transform: scale(1.1);
  color: #cccccc;
}

/* ====== HOMEPAGE ====== */
#homepage {
  background: url('../images/background.png') no-repeat center center scroll;
  background-size: cover;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}

#animation-container {
  font-size: 5rem;
  font-weight: bold;
  white-space: nowrap;
  min-height: 1.2em;
  text-align: center;
}

#company-name {
  position: relative;
  display: inline-block;
  min-width: 2ch;
  white-space: pre;
}

#slider-message {
  position: absolute;
  bottom: 20%;
  font-size: 2.5rem;
  opacity: 0;
  transition: opacity 1s ease-in;
  will-change: opacity;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ====== CARDS & PROJECTS SECTION ====== */
#projects {
  padding: 0;
  background-color: #fff;
  margin-bottom: 0;
}

#projects .section-title {
  font-size: 4.5rem;
  margin-bottom: 60px;
  text-align: center;
  font-weight: 600;
  padding-top: 60px;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-medium);
  width: 96%; /* Increased from 90% to 96% */
  margin: 0 auto;
}

.card {
  background-color: var(--color-background);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-image-container {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
}

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

.card:hover .card-image {
  transform: scale(1.05);
}

.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: var(--heading-size-small);
  font-weight: 600;
  margin-bottom: 8px;
}

.card-location {
  font-size: 0.875rem;
  color: #666;
  margin-bottom: 12px;
}

.card-description {
  font-size: var(--text-size-small);
  margin-bottom: 20px;
  flex-grow: 1;
}

.read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: var(--color-primary);
  color: var(--color-text-light);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: background-color var(--transition-speed) ease;
  border: none;
  cursor: pointer;
  align-self: flex-start;
}

.read-more-button:hover {
  background-color: var(--color-primary-light);
}

/* ====== EXPLORE PROJECTS ====== */
.explore-project {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-large);
  margin: var(--spacing-large) auto;
  transition: transform var(--transition-speed) ease;
  width: 96%; /* Increased from 90% to 96% */
  padding: 2rem var(--container-padding);
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  flex-wrap: wrap;
}

.explore-project.reverse {
  flex-direction: row-reverse;
}

.explore-project:hover {
  transform: translateY(-5px);
}

.explore-project .project-info {
  flex: 1;
  min-width: 300px;
}

.explore-project .project-image-container {
  flex: 1;
  min-width: 300px;
  height: auto;
  aspect-ratio: 4/3;
}

.explore-project:hover .project-image {
  transform: scale(1.03);
}

.project-image-container {
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  height: auto;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
  display: block;
}

.read-more {
  display: inline-block;
  padding: 12px 24px;
  border: 1px solid currentColor;
  border-radius: var(--border-radius);
  background: transparent;
  font-size: var(--text-size-small);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  text-decoration: none;
  color: inherit;
}

.read-more:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.dark-section .read-more:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* ====== ABOUT SECTION ====== */
#about {
  min-height: 100vh;
  padding: 6rem 0;
  background-color: var(--color-background-dark);
}

.about-sections {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-medium);
  width: 96%; /* Increased from 90% to 96% */
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.about-card {
  width: 100%;
  padding: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease;
  margin-bottom: 20px;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.about-subtitle {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 20px;
  padding-bottom: 10px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 15px;
  text-align: left;
}

.about-content ul {
  margin-bottom: 15px;
  padding-left: 20px;
}

.about-content li {
  margin-bottom: 5px;
}

/* ====== CV SECTION ====== */
#cv-section {
  background-color: #ffffff;
  color: #333333;
  padding-top: 100px;
}

.cv-container {
  width: 96%; /* Increased from 90% to 96% */
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.cv-section {
  margin-bottom: 3rem;
}

.cv-section-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.cv-section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
}

.cv-item {
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 2px solid #e0e0e0;
  padding-bottom: 1rem;
}

.cv-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cv-item-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
}

.cv-item-date {
  font-size: 1rem;
  color: #666;
}

.cv-item-subtitle {
  font-size: 1.1rem;
  color: #444;
  margin: 0.5rem 0;
  font-weight: 500;
}

.cv-item-description {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

/* Skills section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  margin-bottom: 1.5rem;
}

.skill-category-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-item {
  background-color: #f5f5f5;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
}

/* Profile header styles */
.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  flex-direction: column;
  text-align: center;
  width: 100%;
}

.profile-picture-container {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.profile-picture {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.profile-name h1 {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 600;
}

.profile-title {
  color: #555;
  font-size: 1.1rem;
  margin-top: 5px;
}

/* Download CV Button Styles */
.download-section {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.download-container {
  text-align: center;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: white;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.download-button:hover {
  background-color: var(--color-primary-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.download-icon {
  font-size: 22px;
  margin-right: 12px;
}

.download-text {
  letter-spacing: 0.5px;
}

/* ====== CONTACT SECTION ====== */
.horizontal-contact-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  width: 96%; /* Increased from 90% to 96% */
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 2rem var(--container-padding);
}

#contact-section .contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: auto;
  min-width: 250px;
  transition: transform 0.3s ease;
}

#contact-section .contact-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

#contact-section .contact-item:hover,
#contact-section .contact-link:hover {
  transform: translateY(-5px);
}

#contact-section .contact-link:hover .contact-icon {
  background-color: rgba(255, 255, 255, 0.2);
}

#contact-section .contact-icon {
  font-size: 2.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  height: 80px;
  width: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

#contact-section .contact-title {
  font-size: 1.8rem;
  margin: 0 0 0.5rem 0;
  font-weight: 500;
  color: #ffffff;
}

#contact-section .contact-value {
  font-size: 1.4rem;
  margin: 0;
  color: #ffffff;
  word-break: break-word;
}

#contact-section .contact-value a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

#contact-section .contact-value a:hover {
  color: #cccccc;
  text-decoration: underline;
}

/* ====== RESEARCH PAGES (TWITTER & COFFEE) ====== */
#twitter-analysis, 
#coffee-analysis {
  padding: 0;
}

#twitter-analysis .section-container, 
#coffee-analysis .section-container {
  width: 96%; /* Increased from 90% to 96% */
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 6rem var(--container-padding);
}

#twitter-analysis .section-title, 
#coffee-analysis .section-title {
  font-size: 3.5rem;
  text-align: center;
  padding-left: 0;
}

#twitter-analysis .project-image-container,
#coffee-analysis .project-image-container {
  width: 100%;
  height: auto;
  margin-bottom: 2rem;
}

#twitter-analysis .project-image,
#coffee-analysis .project-image {
  width: 100%;
  height: auto;
}

/* Tables fix for all screen sizes */
table {
  width: 100%;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ====== MEDIA QUERIES ====== */

/* Tablet Devices (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  :root {
    --heading-size-large: 3.5rem;
    --heading-size-medium: 2rem;
    --container-padding: 2%; /* Consistent padding on tablets */
  }
  
  .section-title {
    font-size: 3rem;
  }
  
  /* Fix explore project layout for tablets */
  .explore-project,
  .explore-project.reverse {
    flex-direction: column;
    width: 96%; /* Increased from 90% to 96% */
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
  }
  
  .explore-project .project-info,
  .explore-project .project-image-container {
    width: 100%;
    max-width: 100%;
  }
  
  /* Ensure proper padding on tablets */
  .section-container,
  .full-screen-section,
  .explore-project,
  .about-sections,
  .cv-container,
  #twitter-analysis .section-container, 
  #coffee-analysis .section-container,
  .horizontal-contact-container,
  .cards-container {
    width: 96%; /* Increased from 90% to 96% */
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  /* Profile header for tablets */
  .profile-header {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }
  
  .profile-picture-container {
    margin-right: 30px;
    margin-bottom: 0;
  }
  
  /* Adjust skills container for tablets */
  .skills-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  /* Fix the expand-out problem on tablets */
  body, html {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Fix card grid for tablets */
  .cards-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }
}

/* Mobile Devices (up to 767px) */
@media (max-width: 767px) {
  :root {
    --heading-size-large: 2.5rem;
    --heading-size-medium: 1.8rem;
    --heading-size-small: 1.4rem;
    --text-size: 1rem;
    --spacing-large: 2.5rem;
    --spacing-medium: 1.5rem;
    --spacing-small: 0.75rem;
  }

  body {
    padding-top: 70px;
  }
  
  .section-title {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
  }
  
  /* Navbar adjustments */
  .nav-container {
    width: 95%;
    padding: 0 10px;
    justify-content: center;
  }
  
  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 15px;
  }
  
  .home-button {
    top: 15px;
    left: 15px;
    font-size: 22px;
    height: auto;
    line-height: normal;
  }
  
  /* Homepage adjustments */
  #animation-container {
    font-size: 3.5rem;
    width: 100%;
    text-align: center;
  }
  
  #slider-message {
    font-size: 2rem;
    bottom: 15%;
  }
  
  /* Project adjustments */
  .explore-project,
  .explore-project.reverse {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
  
  .explore-project .project-info,
  .explore-project .project-image-container {
    width: 100%;
    max-width: 100%;
  }
  
  .explore-project .project-image-container {
    height: auto;
    aspect-ratio: 16/9;
  }
  
  .project-title {
    font-size: 1.8rem;
    text-align: center;
  }
  
  .project-description {
    text-align: center;
  }
  
  /* Card adjustments */
  .cards-container {
    grid-template-columns: 1fr;
  }
  
  .card-content, 
  .project-info {
    text-align: center;
  }
  
  .read-more-button {
    align-self: center;
  }
  
  /* CV adjustments */
  .cv-item-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .profile-picture {
    max-width: 150px;
  }
  
  /* Contact adjustments */
  .horizontal-contact-container {
    flex-direction: column;
    align-items: center;
  }
  
  #contact-section .contact-item {
    width: 100%;
  }
  
  /* Twitter/Coffee page adjustments */
  #twitter-analysis .section-title, 
  #coffee-analysis .section-title {
    font-size: 2.2rem;
  }
}

/* Very Small Devices (up to 480px) */
@media (max-width: 480px) {
  :root {
    --heading-size-large: 2rem;
    --heading-size-medium: 1.5rem;
    --text-size: 0.9rem;
    --container-padding: 2%; /* Minimal padding on very small screens */
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .nav-links {
    gap: 10px;
  }
  
  .nav-link {
    font-size: 0.9rem;
  }
  
  #animation-container {
    font-size: 2.8rem;
  }
  
  #slider-message {
    font-size: 1.5rem;
    bottom: 12%;
  }
  
  #projects .section-title {
    font-size: 1.8rem;
  }
  
  .project-title {
    font-size: 1.5rem;
  }
  
  .about-subtitle {
    font-size: 1.5rem;
  }
  
  .about-content p {
    font-size: 0.9rem;
  }
  
  /* Company grid adjustment for very small screens */
  .company-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  
  /* Maximum fullscreen for very small screens */
  .section-container,
  .explore-project,
  .about-sections,
  .nav-container,
  .cards-container,
  .cv-container,
  .horizontal-contact-container,
  #twitter-analysis .section-container,
  #coffee-analysis .section-container {
    width: 100%; /* Full width on mobile */
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
  }
  
  /* Remove border radius on mobile for full-width feel */
  .explore-project,
  .about-card {
    border-radius: 0;
  }
}

/* Large Desktop (1025px and above) */
@media (min-width: 1025px) {
  :root {
    --container-padding: 1.5%; /* Even smaller padding on large screens */
  }
  
  .profile-header {
    flex-direction: row;
    justify-content: center;
    text-align: left;
  }
  
  .profile-picture-container {
    margin-right: 30px;
    margin-bottom: 0;
  }
  
  .explore-project {
    flex-direction: row;
  }
  
  .explore-project.reverse {
    flex-direction: row-reverse;
  }
  
  /* Ensure proper spacing in large screens */
  .section-container {
    width: 97%; /* Increased from 90% to 97% for maximum fullscreen */
    max-width: var(--container-max-width);
  }
  
  /* Increase fullscreen feel for other containers */
  .nav-container,
  .cards-container,
  .about-sections,
  .cv-container,
  .horizontal-contact-container,
  #twitter-analysis .section-container,
  #coffee-analysis .section-container,
  .explore-project {
    width: 97%;
  }
}

/* Viewport handling */
@viewport {
  width: device-width;
  zoom: 1.0;
}