/* ===================================
   GENERAL STYLES & RESET
   =================================== */

* {
  /* Remove default margins and padding */
  margin: 0;
  padding: 0;
  
  /* Box sizing includes padding and borders in width/height calculations */
  box-sizing: border-box;
}

/* Body styling */
body {
  /* Use Intel One Mono typeface */
  font-family: 'Intel One Mono', monospace;
  
  /* Light gray background for the page */
  background-color: #F0F0F0;
  
  /* Default text color */
  color: #333;
  
  /* Smooth line height for readability */
  line-height: 1.6;
}

/* ===================================
   HERO/HEADER SECTION
   =================================== */

.hero {
  /* Smooth vertical gradient from light to dark blue */
  background: linear-gradient(180deg, #00A8FF 0%, #0071C5 50%, #003D7A 100%);
  
  /* Add a subtle overlay pattern effect */
  position: relative;
  
  /* Make it full width */
  width: 100%;
  
  /* Add padding for spacing */
  padding: 60px 20px;
  
  /* Center the content */
  text-align: center;
  
  /* Add some vertical space */
  min-height: 300px;
  
  /* Display content vertically centered */
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Add a subtle shadow at the bottom */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.hero-content {
  /* Maximum width for better readability on large screens */
  max-width: 800px;
  
  /* Keep text white for contrast against blue */
  color: white;
  
  /* Add animation for subtle fade-in effect */
  animation: slideInDown 0.8s ease-out;
  
  /* Position relative for z-index layering */
  position: relative;
  z-index: 1;
}

/* Fade-in animation */
@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo styling */
.logo {
  /* Make the logo a reasonable size */
  height: 60px;
  width: auto;
  
  /* Add margin below the logo */
  margin-bottom: 30px;
  
  /* Smooth transition for any effects */
  transition: transform 0.3s ease;
}

/* Logo hover effect */
.logo:hover {
  /* Subtle zoom on hover */
  transform: scale(1.05);
}

/* Main heading in hero */
.hero h1 {
  /* Large, bold text */
  font-size: 3rem;
  font-weight: 700;
  
  /* Add margin below heading */
  margin-bottom: 20px;
  
  /* Add a subtle underline decoration */
  text-transform: uppercase;
  letter-spacing: 2px;
  
  /* Add text shadow for depth */
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  
  /* Smooth transition for hover effects */
  transition: all 0.3s ease;
}

/* Heading hover effect */
.hero h1:hover {
  /* Slightly larger on hover */
  transform: scale(1.05);
  
  /* Enhanced shadow on hover */
  text-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  letter-spacing: 3px;
}

/* Paragraph text in hero */
.hero p {
  /* Medium text size */
  font-size: 1.1rem;
  
  /* Add spacing below */
  margin-bottom: 0;
  
  /* Line height for readability */
  line-height: 1.8;
  
  /* Slightly transparent white for subtle effect */
  opacity: 0.95;
  
  /* Smooth transition for hover effects */
  transition: all 0.3s ease;
}

/* Paragraph hover effect */
.hero p:hover {
  /* Slightly more opaque on hover */
  opacity: 1;
  
  /* Add subtle scale effect */
  transform: scale(1.02);
}

/* ===================================
   TIMELINE CARDS SECTION
   =================================== */

.timeline-container {
  /* Add padding around the section */
  padding: 40px 20px;
  
  /* Center content */
  max-width: 1400px;
  margin: 0 auto;
}

.timeline-cards {
  /* Use flexbox to arrange cards */
  display: flex;
  
  /* Wrap cards on mobile, scroll horizontally on desktop */
  flex-wrap: wrap;
  
  /* Space cards evenly */
  gap: 20px;
  
  /* Center cards on the page */
  justify-content: center;
  
  /* On larger screens, allow horizontal scroll */
  overflow-x: auto;
  padding-bottom: 20px;
}

/* Individual card styling */
.card {
  /* Set card dimensions */
  width: 250px;
  height: 350px;
  
  /* White background with shadows */
  background: white;
  border-radius: 8px;
  
  /* Add shadow for depth */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  
  /* Use flexbox for internal layout */
  display: flex;
  flex-direction: column;
  
  /* Overflow hidden to keep rounded corners on images */
  overflow: hidden;
  
  /* Smooth transitions for hover effects */
  transition: all 0.3s ease;
  
  /* Cursor indicates the card is interactive */
  cursor: pointer;
  
  /* Slight shrink effect to prevent layout shift */
  flex-shrink: 0;
}

/* Hover effect for cards */
.card:hover {
  /* Lift the card with a larger shadow */
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  
  /* Move card up slightly */
  transform: translateY(-8px);
}

/* Card image container */
.card-image {
  /* Make image take up space proportionally */
  width: 100%;
  height: 160px;
  
  /* Hide overflow to keep image contained */
  overflow: hidden;
  
  /* Set background color for loading state */
  background-color: #e0e0e0;
}

/* Image within card */
.card-image img {
  /* Make image fill the container */
  width: 100%;
  height: 100%;
  
  /* Maintain aspect ratio and fill container */
  object-fit: cover;
  
  /* Smooth transition for zoom effect */
  transition: transform 0.3s ease;
}

/* Zoom effect on card hover */
.card:hover .card-image img {
  /* Subtle zoom effect */
  transform: scale(1.1);
}

/* Card content (year and title) */
.card-content {
  /* Add padding for spacing */
  padding: 20px;
  
  /* Flex grow to push description down */
  flex-grow: 1;
}

/* Card year styling */
.card-year {
  /* Large, bold text for the year */
  font-size: 1.8rem;
  font-weight: 700;
  
  /* Intel blue color */
  color: #0071C5;
  
  /* Margin below year */
  margin-bottom: 5px;
}

/* Card title styling */
.card-title {
  /* Smaller than year but still prominent */
  font-size: 1rem;
  font-weight: 600;
  
  /* Dark gray text */
  color: #333;
  
  /* Margin below title */
  margin-bottom: 0;
}

/* Card description (hidden by default) */
.card-description {
  /* Hidden initially */
  display: none;
  
  /* Fill remaining space */
  padding: 20px;
  
  /* Intel blue background for contrast */
  background-color: #0071C5;
  
  /* White text on dark background */
  color: white;
  
  /* Make text smaller */
  font-size: 0.9rem;
  
  /* Better line height for readability */
  line-height: 1.6;
  
  /* Add transition for smooth appearance */
  transition: opacity 0.3s ease;
}

/* Show description on hover */
.card:hover .card-description {
  /* Display the description */
  display: block;
}

/* ===================================
   TIMELINE INFO / FOOTER
   =================================== */

.timeline-info {
  /* Center text */
  text-align: center;
  
  /* Add padding */
  padding: 30px 20px;
  
  /* Light blue background */
  background-color: #E8F1F8;
  
  /* Add top border for separation */
  border-top: 1px solid #0071C5;
}

.timeline-info p {
  /* Medium font size */
  font-size: 1rem;
  
  /* Slightly muted color */
  color: #666;
  
  /* No margin */
  margin: 0;
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE
   =================================== */

/* For very small phones (320px and up) */
@media (max-width: 480px) {
  /* Adjust hero padding on mobile */
  .hero {
    padding: 40px 15px;
    min-height: 250px;
  }
  
  /* Smaller heading on mobile */
  .hero h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }
  
  /* Smaller text on mobile */
  .hero p {
    font-size: 0.95rem;
  }
  
  /* Adjust logo size */
  .logo {
    height: 45px;
    margin-bottom: 20px;
  }
  
  /* Make cards smaller on mobile */
  .card {
    width: 100%;
    max-width: 280px;
    height: 300px;
  }
  
  /* Smaller card image */
  .card-image {
    height: 130px;
  }
  
  /* Adjust padding in card content */
  .card-content {
    padding: 15px;
  }
  
  /* Smaller year text */
  .card-year {
    font-size: 1.5rem;
  }
  
  /* Adjust description padding */
  .card-description {
    padding: 15px;
    font-size: 0.85rem;
  }
  
  /* Smaller timeline info text */
  .timeline-info p {
    font-size: 0.9rem;
  }
}

/* For tablets (481px to 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  /* Adjust hero heading */
  .hero h1 {
    font-size: 2.2rem;
  }
  
  /* Make cards fit better on tablet */
  .card {
    width: 220px;
    height: 320px;
  }
  
  /* Adjust card image height */
  .card-image {
    height: 140px;
  }
}

/* For larger tablets and small desktops (769px and up) */
@media (min-width: 769px) {
  /* Stack timeline cards in pairs on medium screens */
  .timeline-cards {
    flex-wrap: wrap;
  }
  
  /* Allow horizontal scroll instead on desktop */
  @media (min-width: 1024px) {
    .timeline-cards {
      flex-wrap: nowrap;
      overflow-x: auto;
    }
  }
}

/* ===================================
   ACCESSIBILITY & ANIMATIONS
   =================================== */

/* Smooth animations for all transitions */
@media (prefers-reduced-motion: no-preference) {
  * {
    scroll-behavior: smooth;
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
