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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f9f9fb;
}

/* ================================
   Layout Containers
================================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

header,
footer {
  background: #111;
  color: #fff;
  padding: 1.5rem 0;
}

header h1,
footer p {
  text-align: center;
  font-weight: 600;
}

/* ================================
   Navigation
================================= */
nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav a:hover,
nav a:focus {
  color: #4dabf7;
}

/* ================================
   Hero Section
================================= */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #4dabf7, #1864ab);
  color: #fff;
  text-align: center;
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 600px;
  font-size: 1.125rem;
}

/* ================================
   Portfolio Grid
================================= */
.portfolio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 4rem 0;
}

.card {
  flex: 0 1 1200px;           /* fixed max width for each card */
  margin: 0 auto;            /* keeps them centered */
  background: #cfcbcf;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 1.5rem;   /* adds space on all sides */
}

.card-title {
  font-size: 1.5rem;          /* larger than body text */
  font-weight: 700;           /* bold for emphasis */
  color: #1864ab;             /* accent color to draw attention */
  margin-bottom: 0.75rem;     /* space below the title */
  text-align: center;         /* optional: center it in the card */
  letter-spacing: 0.5px;      /* subtle spacing for polish */
  text-transform: uppercase;  /* optional: makes it feel strong */
}

.card-date {
  font-size: 0.875rem;        /* smaller than body text */
  color: #777;                /* muted gray for subtlety */
  font-style: italic;         /* distinguishes it from main text */
  display: block;             /* ensures it sits on its own line */
  margin-bottom: 0.75rem;     /* spacing below before content */
  letter-spacing: 0.25px;     /* slight spacing for readability */
}

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

.card img {
  width: 100%;
  height: auto;
  display: block;
}

.card-content {
  padding: 1.5rem;
}

.card-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: #1864ab;
}

.card-content p {
  font-size: 0.95rem;
  color: #555;
}

/* ================================
   Links
================================= */

.link-container {
  text-align: center;
  margin: 2rem 0;
}

.link-container a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #1864ab;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.link-container a:hover {
  background: #4dabf7;
}

/* ================================
   Buttons
================================= */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  background: #1864ab;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn:hover,
.btn:focus {
  background: #4dabf7;
}

/* ================================
   Contact Section
================================= */
.contact {
  padding: 4rem 0;
  text-align: center;
}

.contact h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
}

.contact p {
  margin-bottom: 2rem;
  color: #444;
}

.contact form {
  max-width: 600px;
  margin: 0 auto;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

.contact button {
  width: 100%;
}

/* ================================
   Footer
================================= */
footer {
  font-size: 0.875rem;
}

/* ================================
   Responsive Adjustments
================================= */
@media (max-width: 768px) {
  .hero h2 {
    font-size: 2rem;
  }

  nav {
    flex-direction: column;
    gap: 1rem;
  }
}
