/* ============================================================
   PORTFOLIO WEBSITE STYLES - JUUSO SATOVUORI
   This file contains all the styling for the portfolio website
   ============================================================ */

/* ====================
   FONTS
   ==================== */
/* Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');


/* ====================
   GLOBAL STYLES
   ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: white;
  color: #232323;
  font-family: 'Poppins', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ====================
   LAYOUT
   ==================== */
.page-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px; /* Small margins on left and right */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1;
  padding-top: 104px; /* Space for fixed navigation */
  padding-bottom: 80px; /* Space at bottom */
}


/* ====================
   NAVIGATION
   ==================== */
/* Fixed navigation bar at the top */
.top-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  z-index: 100;
  border-bottom: 1px solid transparent;
}

.nav-container {
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center; /* Center the navigation links */
}

.nav-links {
  display: flex;
  gap: 72px; /* 72px spacing between navigation items */
  list-style: none;
  justify-content: center;
}

.nav-links a {
  font-size: 21px;
  line-height: 33.6px;
  letter-spacing: -0.042px;
  color: #232323;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* Active page gets an underline */
.nav-links a.active {
  text-decoration: underline;
  text-underline-position: from-font;
}


/* ====================
   FOOTER
   ==================== */
.footer {
  border-top: 1px solid #707070;
  padding: 40px 43px;
  margin-top: auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.footer-links a,
.copyright {
  font-size: 16px;
  line-height: 21.6px;
  letter-spacing: -0.032px;
  color: #232323;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 0.7;
}


/* ====================
   PORTFOLIO GRID (Index/Home Page)
   ==================== */
/* Two-column grid for case studies */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px 8px; /* 80px vertical, 8px horizontal */
}

.case-item {
  text-decoration: none;
  display: block;
  transition: opacity 0.3s;
}

.case-item:hover {
  opacity: 0.8;
}

.case-image {
  width: 100%;
  border-radius: 2px;
  display: block;
  margin-bottom: 16px;
}

.case-title {
  font-size: 21px;
  line-height: 33.6px;
  letter-spacing: -0.042px;
  color: #232323;
  font-weight: 400; /* Regular weight */
  margin-top: 0;
}

.case-description {
  font-size: 16px;
  line-height: 21.6px;
  letter-spacing: -0.032px;
  color: #232323;
}


/* ====================
   CASE STUDY PAGE
   ==================== */
.case-header {
  padding-bottom: 40px;
}

/* Metadata section (Customer, Agency, Duration) */
.case-meta {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 16px;
  line-height: 21.6px;
  letter-spacing: -0.032px;
  font-weight: 600;
  color: #232323;
}

.meta-value {
  font-size: 16px;
  line-height: 21.6px;
  letter-spacing: -0.032px;
  font-weight: 400;
  color: #232323;
}

/* Main title on case study pages */
.case-main-title {
  font-size: 52px;
  line-height: 52.8px;
  letter-spacing: -0.096px;
  font-weight: 300;
  color: #232323;
  margin-bottom: 56px;
    margin-top: 56px;
}

/* Large hero image */
.hero-image {
  width: 100%;
  border-radius: 2px;
  margin: 0px 0;
}

/* Content sections */
.section {
  margin: 80px 0;
}

/* Two-column layout for text sections */
.section-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
    width: 90%;
}

.section-title {
  font-size: 44px;
  line-height: 52.8px;
  letter-spacing: -0.068px;
  font-weight: 400;
  color: #232323;
}

.subsection-title {
  font-size: 24px;
  line-height: 30.45px;
  letter-spacing: -0.042px;
  font-weight: 400;
  color: #232323;
  margin-bottom: 24px;
}

.section-text {
  font-size: 21px;
  line-height: 30.45px;
  letter-spacing: -0.042px;
  font-weight: 400;
  color: #232323;
  margin-bottom: 24px;
}

/* Stack of images */
.image-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.image-stack img {
  width: 100%;
  border-radius: 2px;
}

/* Contributions list with arrow icons */
.deliverables-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.deliverables-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 21px;
  line-height: 30.45px;
  letter-spacing: -0.042px;
  font-weight: 400;
  color: #232323;
}

.contributions-list li:last-child {
  margin-bottom: 0;
}

.contributions-list .material-symbols-outlined {
  font-size: 24px;
  color: #232323;
  flex-shrink: 0; /* Prevent icon from shrinking */
}


/* ====================
   ILLUSTRATION PAGE & ABOUT PAGE
   ==================== */
/* Centered text container with max-width */
.illustration-header {
  width: 100%;
  max-width: 720px; /* Narrower text frame on desktop */
  margin: 0 auto 80px;
  text-align: left;
}

.page-title {
  font-size: 3em;
  line-height: 52.8px;
  letter-spacing: -0.096px;
  font-weight: 300;
  color: #232323;
  margin-bottom: 40px;
    margin-top: 40px;
}

.intro-text {
  font-size: 21px;
  line-height: 30.45px;
  letter-spacing: -0.042px;
  font-weight: 400;
  color: #232323;
}

/* For spacing between paragraphs */
.intro-text + .intro-text {
  margin-top: 24px;
}

/* Grid of illustrations */
.illustration-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.illustration-item img {
  width: 100%;
  border-radius: 2px;
  margin-bottom: 0px;
}

/* Title below each illustration */
.illustration-title {
  font-size: 21px;
  line-height: 33.6px;
  letter-spacing: -0.042px;
  color: #232323;
  font-weight: 400;
  max-width: 720px; /* Match header width */
  margin-left: auto;
  margin-right: auto;
}

.profile-image {
  width: 100%;
  border-radius: 2px;
  display: block;
  margin-top: 80px;

}



/* ====================
   RESPONSIVE DESIGN
   ==================== */

/* -------- TABLET (768px and below) -------- */
@media (max-width: 768px) {
  /* Reduce page padding */
  .page-container {
    padding: 0 16px;
  }
  
  /* Reduce navigation height */
  .nav-container {
    padding: 0 16px;
    height: 80px;
  }
  
  /* Keep 72px spacing between nav items on tablet */
  .nav-links {
    gap: 100px;
  }
  
  /* Smaller navigation text */
  .nav-links a {
    font-size: 18px;
  }
  
  /* Adjust main content spacing */
  .main-content {
    padding-top: 80px;
    padding-bottom: 60px;
  }
  
  /* Change portfolio grid to single column */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  /* Change section layout to single column */
  .section-layout {
    grid-template-columns: 1fr;
  }
  
  /* Stack metadata vertically */
  .case-meta {
    flex-direction: column;
    gap: 20px;
  }
  
  /* Reduce title sizes */
  .case-main-title {
    font-size: 3em;
    line-height: 48px;
  }
  
  .page-title {
    font-size: 3em;
    line-height: 40px;
  }
  
  .section-title {
    font-size: 36px;
    line-height: 36px;
  }
  
  /* Narrower text frames on tablet (600px) */
  .illustration-header,
  .illustration-title {
    max-width: 600px;
  }
  
  /* Adjust footer padding */
  .footer {
    padding: 30px 16px;
  }
  
  /* Stack footer content vertically */
  .footer-content {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}


/* -------- MOBILE (480px and below) -------- */
@media (max-width: 480px) {
  /* Auto spacing for navigation items on mobile */
  .nav-links {
    width: 100%;
    justify-content: space-between; /* Spreads items evenly */
    gap: 0;
  }
  
  /* Smaller navigation text */
  .nav-links a {
    font-size: 18px;
  }
  
  /* Further reduce title sizes */
  .case-main-title {
    font-size: 24;
    line-height: 50px;
  }
  
  .page-title {
    font-size: 48px;
    line-height: 56px;
    margin-bottom: 32px;
  }
  
  /* Reduce body text size */
  .section-text,
  .intro-text {
    font-size: 18px;
    line-height: 26px;
  }
  
  /* Full width text frames on mobile */
  .illustration-header,
  .illustration-title {
    max-width: 100%;
  }
  
  /* Stack footer links vertically */
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}


-------
---TEST

/* ====================
   EXPERIENCE
   ==================== */

.experience-section {
  margin-top: 96px;
}

.experience-heading {
  font-size: 36px;
  font-weight: 400;
  line-height: 40px;
  margin-bottom: 32px;
    margin-top: 32px;
  color: #232323;
}

.experience-item {
  padding: 28px 0;
  border-top: 1px solid #707070;
}


}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.experience-role {
  font-size: 21px;
  line-height: 30px;
  font-weight: 400;
  color: #232323;
}

.experience-company {
  font-size: 18px;
  line-height: 28px;
  color: #232323;
}

.experience-dates,
.experience-location {
  font-size: 15px;
  line-height: 24px;
  color: #707070;
}

.experience-location {
  margin-top: 6px;
}

.experience-description {
  margin-top: 18px;
  font-size: 18px;
  line-height: 30px;
  color: #232323;
  max-width: 640px;
}

@media (max-width: 768px) {

  .experience-header {
    flex-direction: column;
    gap: 8px;
  }

  .experience-dates {
    margin-top: 4px;
  }

}


