
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;700&display=swap');

:root {
  --intel-blue: #0071c5;
  --intel-dark-blue: #0d223f;
  --card-background: #ffffff;
  --text-color: #333333;
  --light-gray: #f4f4f4;
  --white: #ffffff;
}


html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light-gray);
  color: var(--text-color);
  line-height: 1.6;
  text-align: center;
}



header {
  background: linear-gradient(
      rgba(13, 34, 63, 0.85),
      rgba(13, 34, 63, 0.85)
    ),
    url('img/intel-header-logo.svg') no-repeat center center/cover;
  color: var(--white);
  padding: 4rem 1rem;
  text-align: center;
  border-bottom: 5px solid var(--intel-blue);
}

header div {
  max-width: 800px;
  margin: 0 auto;
}

header img {
  width: 100px;
  margin-bottom: 1.5rem;
}

header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

header p {
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}


section {
  display: flex;
  overflow-x: auto;
  padding: 3rem 0; 
  scroll-snap-type: x mandatory;
  scroll-padding: 0 2rem; 
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--intel-blue) var(--light-gray);
}


section::before,
section::after {
    content: '';
    flex: 0 0 2rem;
}

section::-webkit-scrollbar {
  height: 8px;
}

section::-webkit-scrollbar-thumb {
  background-color: var(--intel-blue);
  border-radius: 4px;
}

section div {
  flex: 0 0 320px;
  background-color: var(--card-background);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 0 1rem; 
  padding: 1.5rem;
  text-align: left;
  scroll-snap-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}


section div:hover {
  transform: translateY(-10px) scale(1.03); 
  box-shadow: 0 10px 24px rgba(0, 113, 197, 0.25); 
}

section h2 {
  font-size: 2.5rem;
  color: var(--intel-blue);
  margin-bottom: 0.5rem;
}

section h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

section img,
section p {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-bottom: 0;
  transition: max-height 0.5s ease-in-out, opacity 0.5s ease-in-out, margin-bottom 0.5s ease-in-out;
}

section div:hover img,
section div:hover p {
  max-height: 500px;
  opacity: 1;
  margin-bottom: 1rem;
}

section img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

section p {
  font-size: 0.95rem;
  color: #555;
}

body > p {
  padding: 1.5rem;
  color: #888;
  font-style: italic;
}

@media (max-width: 768px) {
  header h1 {
    font-size: 2.5rem;
  }

  section {
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    padding: 2rem 1rem;
    scroll-snap-type: none;
    scroll-padding: 0; 
  }

  section::before,
  section::after {
      display: none; 
  }

  section div {
    flex-basis: auto;
    width: 90%;
    max-width: 400px;
    margin: 0 0 1.5rem 0; 
  }
}