/* Base Settings and CSS Variables */
:root {
  --primary-color: #007bff;
  --primary-dark: #0056b3;
  --background-color: #f4f4f4;
  --text-color: #333;
  --secondary-text: #555;
  --light-gray: #e0e0e0;
  --white: #fff;
  --terracotta: #E07A5F;
  --light-blue: #81A1C1;
  --medium-gray: #6C757D;
  --dark-gray: #343A40;
}

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

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

/* Links */
a {
  text-decoration: none;
  color: var(--terracotta);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

/* Header and Navigation */
header {
  background-color: var(--dark-gray);
  color: var(--white);
  padding: 1rem 0;
  border-bottom: 1px solid var(--light-gray);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--terracotta);
}

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

nav ul li {
  margin-left: 1.5rem;
}

nav ul li a {
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  background-color: var(--light-gray);
  color: var(--text-color);
}

/* Hero Section */
.hero {
  background: url('../assets/images/hero-bg.jpg') no-repeat center center/cover;
  background-color: var(--medium-gray);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--white);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

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

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--terracotta);
  color: var(--dark-gray);
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--light-blue);
  color: var(--text-color);
}

/* Featured Sections */
.featured-sections {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.section-card {
  background-color: var(--white);
  border: 1px solid var(--medium-gray);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.section-card img {
  max-width: 80px;
  margin-bottom: 1rem;
}

.section-card h3 {
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.section-card p {
  color: var(--secondary-text);
  margin-bottom: 1rem;
}

.read-more-link {
  color: var(--terracotta);
  font-weight: bold;
}

/* Footer */
footer {
  background-color: var(--terracotta);
  color: var(--dark-gray);
  font-weight: bold;
  text-align: center;
  padding: 1rem 0;
  margin-top: 6rem;
}
/* --- Page-Specific Sections --- */

/* Contact Page */
.contact-page-section {
  max-width: 800px;
  margin: 2rem auto;
  padding: 20px;
  text-align: center;
}

.contact-content {
  background-color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.contact-content h1 {
  margin-bottom: 1rem;
  text-align: center;
}

.contact-content p {
  margin-bottom: 2rem;
  color: var(--secondary-text);
  text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: bold;
  color: var(--text-color);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
}

.submit-button {
  padding: 1rem 2rem;
  background-color: var(--terracotta);
  color: var(--light-gray);
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: center;
}

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

/* About, Projects, and Blog Pages  -  Common Styles */
.about-page-section,
.projects-page-section,
.blog-page-section {
  background-color: var(--dark-gray);
  max-width: 1200px;
  margin: 2rem auto;
  padding: 20px;
}

.about-content,
.container,
.projects-content,
.blog-content {
  color: var(--white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.about-content h1,
.projects-content h1,
.blog-content h1 {
  margin-bottom: 1rem;
  text-align: center;
}

.about-content p,
.projects-content p,
.blog-content p {
  color: var(--white);
}
/* About Page */

.about-content {
 text-align: center;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 2rem;
  border: 5px solid var(--light-gray);
}

/* Projects Page */

.projects-content p {
  text-align: center;
  margin-bottom: 2rem;
}

.project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
    background-color: #333;
    border-radius: 15px;
    padding: 20px;
    margin: 20px;
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.project-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 10px;
    margin: 0 auto 15px;
    display: block;
}

/* Blog Page */
.blog-content p {
  margin-bottom: 2rem;
}

.blog-posts {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.blog-post {
  padding: 20px;
  border-bottom: 1px solid var(--light-gray);
}

.blog-post:last-child {
  border-bottom: none;
}

.blog-post h3 a {
  color: var(--text-color);
}

.post-meta {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

/* Social Media Links Styling */
.social-media-links {
  text-align: center;
  margin-bottom: 1.5rem;
}

.social-media-links a {
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--light-gray);
  background-color: var(--terracotta);
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.social-media-links a:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

/* Styles for the "My Work" section on the About page */
.my-work-sections {
  display: flex;
  flex-wrap: wrap;
  background-color: var(--dark-gray);
  justify-content: space-around;
  gap: 20px;
  padding: 20px;
}

.work-card {
  width: calc(50% - 40px);
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 20px;
  transition: transform 0.2s ease-in-out;
}

.work-card:hover {
  transform: scale(1.05);
}

.work-card img {
  max-width: 100px;
  height: auto;
  margin-bottom: 10px;
}

.work-card h3 {
  font-size: 1.2em;
  margin-bottom: 5px;
  color: var(--text-color);
}

.work-card p {
  font-size: 1em;
  color: var(--secondary-text);
  line-height: 1.4;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  nav {
      flex-direction: column;
      text-align: center;
  }

  nav ul {
      flex-direction: column;
      padding-top: 1rem;
  }

  nav ul li {
      margin-left: 0;
      margin-top: 0.5rem;
  }

  .hero h1 {
      font-size: 2rem;
  }

  .hero p {
      font-size: 1rem;
  }

  .contact-page-section,
  .about-page-section,
  .projects-page-section,
  .blog-page-section {
      padding: 10px;
  }

  .contact-content,
  .about-content,
  .projects-content,
  .blog-content {
      padding: 20px;
  }

  .profile-image {
      width: 120px;
      height: 120px;
  }

  .project-list {
      grid-template-columns: 1fr;
  }

  .blog-posts {
      gap: 20px;
  }

  .my-work-sections {
      flex-direction: column;
  }

  .work-card {
      width: 90%;
  }
}

/* Thank You Page Customizations */
.contact-page-section .thank-you-message {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.contact-page-section .redirect-link {
  display: block;
  margin-top: 2rem;
  text-align: center;
}

/* Additional Styling for Centering Project Link */
.project-link {
  display: block;
  text-align: center;
  margin-top: 10px;
  color: var(--terracotta);
  font-weight: bold;
}
.project-link:hover {
	color:var(--primary-dark)
}

/* --- General Blog Styles --- */

.blog-page-section {
  padding: 20px 0;
}

.blog-content {
  padding: 20px;
}

.blog-content h1 {
  font-size: 2.5em;
  margin-bottom: 0.5em;
  color: var(--terracotta);
}

.blog-content > p {
  font-size: 1.2em;
  margin-bottom: 1em;
}

/* --- Blog Index Page Styles --- */

.blog-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top:2rem;
}

.blog-card {
  display: block;
  background-color: #333;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
  background-color: var(--medium-gray);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.blog-card h3 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
}

.blog-card h3 a {
  color: var(--terracotta);
  text-decoration: none;
}
.blog-card h3 a:hover{
	text-decoration:underline;
}

.blog-card .post-meta {
  font-size: 0.9em;
  color: #aaa;
  margin-bottom: 2em;
}

.blog-card p {
  font-size: 1em;
  line-height: 1.5;
  color: #ddd;
  margin-bottom: 1em;
}

/* --- Individual Blog Post Styles --- */

.blog-post h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--terracotta);
    line-height: 1.2;
}

.blog-post h2 {
    font-size: 2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
     color: #ddd;
    line-height: 1.3;
}
.blog-post h3{
	font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-post p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color:#fff;
}

.blog-post ul, .blog-post ol {
    margin-bottom: 1rem;
    margin-left: 2rem;
    color:#fff
}

.blog-post li {
    margin-bottom: 0.5rem;
}

.blog-post a {
    color: var(--terracotta);
    text-decoration: none;
}

.blog-post img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
    border-radius:8px;
}

/* --- Container ---*/
.container{
	max-width:1200px;
	margin: 0 auto;
}

/* --- Responsive adjustments --- */
@media (max-width: 768px) {

  .blog-content h1{
    font-size:2em;
  }
  .blog-post h1{
    font-size:2em;
  }
  .blog-post h2{
    font-size:1.6em;
  }
  .blog-post h3{
	font-size: 1.3rem;
  }
  .container{
    padding: 0 15px;
  }
}