
:root {
  /* Bright and colorful palette */
  --primary-color: #1976d2;        /* vivid blue */
  --secondary-color: #f57c00;      /* rich orange */
  --accent-color: #43a047;         /* complementary green */
  --background-color: #f7f9fc;     /* very light bluish background */
  --light-section: #e3f2fd;        /* light blue for alternating sections */
  --dark-section: #fff3e0;         /* light orange for alternating sections */
  --text-color: #333333;
  --link-color: var(--primary-color);
}

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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--text-color);
}

a {
  color: var(--link-color);
  text-decoration: none;
}

nav {
  /* Use a subtle gradient on the navigation bar */
  background-image: linear-gradient(90deg, var(--primary-color), #0d47a1);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
}

nav .logo {
  font-size: 1.3rem;
  font-weight: bold;
}

nav ul {
  list-style: none;
  display: flex;
}

nav ul li {
  margin: 0 0.5rem;
}

nav ul li a {
  color: white;
  padding: 0.5rem;
}

nav ul li a.active,
nav ul li a:hover {
  background-color: var(--secondary-color);
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.hero {
  position: relative;
  height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Slightly lighter overlay so background images pop */
  background: rgba(0, 0, 0, 0.4);
}

/* Hero content now supports two‑column layout with optional photo */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 960px;
  width: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* Left area for hero headings and text */
.hero-text {
  flex: 1 1 320px;
  color: white;
  padding: 1rem;
  /* Ensure readability by adding a semi‑transparent backdrop behind hero text */
  background: rgba(0, 0, 0, 0.45);
  border-radius: 6px;
}

/* Right area for hero photos */
.hero-photo {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
  padding: 1rem;
}

.hero-photo img {
  width: 100%;
  max-width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

section {
  padding: 2rem 1rem;
  max-width: 960px;
  margin: 0 auto;
}

/* Ensure lists inside sections have consistent spacing */
section ul {
  margin-left: 1rem;
  padding-left: 1.2rem;
}

section ul li {
  margin-bottom: 0.5rem;
}

.section-title {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 2rem;
  text-align: center;
  /* Add a subtle backdrop so headings stand out on colourful sections */
  background-color: rgba(255, 255, 255, 0.75);
  padding: 0.3rem 0.6rem;
  display: inline-block;
  border-radius: 4px;
}

/* Improve readability of subheadings on colourful backgrounds by adding a light backdrop */
section h3,
section h4 {
  background-color: rgba(255, 255, 255, 0.75);
  display: inline-block;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

/* Alternate section backgrounds for a colourful feel */
section:nth-of-type(odd) {
  background-color: var(--light-section);
}

section:nth-of-type(even) {
  background-color: var(--dark-section);
}

.card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

/* Card hover effect for a modern feel */
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

footer {
  /* Apply a gradient to the footer */
  background-image: linear-gradient(90deg, var(--primary-color), #0d47a1);
  color: white;
  padding: 1rem;
  text-align: center;
}

footer .footer-icons {
  margin-top: 0.5rem;
}

footer .footer-icons a {
  color: white;
  margin: 0 0.5rem;
  font-size: 1.3rem;
}

/* Intro paragraph styling
   The introductory paragraphs at the top of each page should feel inviting and
   clearly separate themselves from the main content. A larger font size,
   centered alignment and generous margins help draw the reader in without
   overwhelming them. */
.intro {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 1.5rem auto;
  text-align: center;
  line-height: 1.6;
}

/* Profile image styling */
.profile-image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  margin: 1rem auto;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Resume button styling */
.button {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}

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

/* Gallery grid for profile images */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.gallery img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* responsive nav for small screens */
@media (max-width: 600px) {
  nav ul {
    flex-direction: column;
  }
  .hero {
    height: 40vh;
  }
  .section-title {
    font-size: 1.5rem;
  }
}
