/*
Theme Name: Ali AlShehri Personal
Theme URI: https://alibinsaeed.com
Author: Ali AlShehri
Description: A custom personal website theme based on the Marqa one‑page template concept. It showcases Ali’s experience, services, portfolio and insights in a clean, professional design.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alialshehri
*/

/* CSS Variables for easy colour adjustment */
:root {
  --primary-color: #2e4a74;
  --secondary-color: #f5f7fa;
  --accent-color: #007acc;
  --text-color: #333333;
  --background-color: #ffffff;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  /* Increased line height for improved readability on long paragraphs */
  line-height: 1.75;
}

/* Add bottom margin to paragraphs globally for better spacing */
p {
  margin-bottom: 1rem;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header */
.site-header {
  background-color: var(--secondary-color);
  border-bottom: 1px solid #e1e1e1;
}

.site-header .logo {
  font-size: 1.8rem;
  font-weight: 600;
  padding: 1rem 0;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}

.nav-menu li {
  margin: 0;
}

.nav-menu a {
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.nav-menu a:hover,
.nav-menu .current-menu-item a {
  background-color: var(--primary-color);
  color: #fff;
}

/* Footer */
.site-footer {
  background-color: var(--secondary-color);
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 2rem;
  border-top: 1px solid #e1e1e1;
}

.site-footer p {
  margin: 0;
  color: #666;
}

/* Hero section */
.hero {
  padding: 4rem 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: #fff;
}

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

.hero h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
}

.hero p {
  font-size: 1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
}

.cta-buttons a {
  display: inline-block;
  margin: 0 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.2s ease;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: #005b9f;
}

.btn-secondary {
  background-color: #fff;
  color: var(--primary-color);
  border: 1px solid #fff;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.8);
}

/* Highlights section */
.highlights {
  background-color: var(--secondary-color);
  padding: 3rem 0;
}

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

.highlight-cards .card {
  background-color: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 1.5rem;
  text-align: left;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.highlight-cards .card:hover {
  transform: translateY(-5px);
}

.highlight-cards .card h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-size: 1.25rem;
}

/* Sections */
section {
  padding: 3rem 0;
}

section h1 {
  margin-top: 0;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* About section */
.about .about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2rem;
}

.about .about-text {
  flex: 1 1 60%;
  /* Increase spacing between paragraphs within the About section */
  line-height: 1.7;
}

/* Additional spacing for paragraphs in the About section */
.about .about-text p {
  margin-bottom: 1rem;
}

.about .about-image {
  flex: 1 1 35%;
}

.about .about-image img {
  max-width: 100%;
  border-radius: 6px;
}

/* Experience list */
.experience .cv-section {
  margin-bottom: 2rem;
}

.experience .cv-section h2 {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
  color: var(--primary-color);
  margin-top: 1rem;
}

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

.experience .cv-section ul {
  list-style: disc inside;
  margin: 0;
  padding-left: 1rem;
  /* Provide extra spacing between items for readability */
  margin-bottom: 0.5rem;
}

/* Ensure each list item in the experience section has spacing below */
.experience .cv-section ul li {
  margin-bottom: 0.5rem;
}

/* Services */
.services .service {
  margin-bottom: 2rem;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 1.5rem;
  background-color: #fff;
  line-height: 1.6;
}

.services .service h2 {
  margin-top: 0;
  color: var(--primary-color);
}

/* Portfolio */
.portfolio-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.portfolio-item {
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 1rem;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.portfolio-item h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.portfolio-item .portfolio-content {
  font-size: 0.95rem;
  color: #555;
}

/* Blog */
.blog .post {
  margin-bottom: 2rem;
  border: 1px solid #e1e1e1;
  border-radius: 6px;
  padding: 1.5rem;
  background-color: #fff;
}

.blog .post h2 {
  margin-top: 0;
  color: var(--primary-color);
}

.blog .linkedin-feed {
  margin-top: 3rem;
  background-color: var(--secondary-color);
  padding: 2rem;
  border-radius: 6px;
}

/* Contact form */
.contact-form .form-group {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

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

.contact-form button {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #005b9f;
}

.success {
  background-color: #e7f6e7;
  border: 1px solid #b7e2b7;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  color: #2f6627;
}

.error {
  background-color: #fde9e9;
  border: 1px solid #f5c2c2;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  color: #a02121;
}

@media (max-width: 768px) {
  .about .about-content {
    flex-direction: column;
  }
  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }
}