/*
Theme Name:    Custom Portfolio Theme
Theme URI:     http://example.com/
Author:        Your Name
Author URI:    http://example.com/
Description:   A custom WordPress theme designed for a modern portfolio website.  It features a bold design with a hero section, portfolio grid, about section and contact form.
Version:       1.0
License:       GNU General Public License v2 or later
License URI:   http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:   custom-portfolio
*/

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

body {
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  background-color: #ececec; /* Secondary color */
  color: #333;
}

a {
  color: #2341e1; /* Primary color */
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

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

/* Header */
header.site-header {
  background-color: #2341e1; /* Primary color */
  color: #fff;
  padding: 20px 0;
}
.site-header .site-branding {
  float: left;
  font-size: 1.5em;
  font-weight: bold;
}
.site-header nav.main-navigation {
  float: right;
}
.main-navigation ul {
  list-style: none;
  display: flex;
  gap: 20px;
}
.main-navigation ul li a {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.main-navigation ul li a:hover {
  color: #ececec; /* Secondary color */
}

/* Hero Section */
.hero {
  background-color: #fff;
  padding: 80px 0;
  text-align: center;
}
.hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
  color: #2341e1; /* Primary color */
}
.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #666;
}
.hero .cta-button {
  display: inline-block;
  background-color: #2341e1;
  color: #fff;
  padding: 15px 30px;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}
.hero .cta-button:hover {
  background-color: #1931ac;
}

/* Portfolio Section */
.portfolio-section {
  padding: 60px 0;
  background-color: #ececec; /* Secondary color */
}
.portfolio-section h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  color: #2341e1; /* Primary color */
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.portfolio-item {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}
.portfolio-item:hover {
  transform: translateY(-5px);
}
.portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
}
.portfolio-item .portfolio-info {
  padding: 15px;
}
.portfolio-item .portfolio-info h3 {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #2341e1;
}
.portfolio-item .portfolio-info p {
  color: #666;
}

/* About Section */
.about-section {
  padding: 60px 0;
  background-color: #fff;
}
.about-section .about-container {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.about-image {
  flex: 1;
  text-align: center;
}
.about-image img {
  max-width: 250px;
  border-radius: 50%;
  border: 5px solid #2341e1;
}
.about-content {
  flex: 2;
}
.about-content h2 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #2341e1;
}
.about-content p {
  font-size: 1.1em;
  color: #444;
  margin-bottom: 20px;
}

/* Contact Section */
.contact-section {
  padding: 60px 0;
  background-color: #ececec; /* Secondary color */
}
.contact-section h2 {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  color: #2341e1;
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.contact-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #2341e1;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}
.contact-form textarea {
  min-height: 120px;
}
.contact-form button {
  background-color: #2341e1;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 4px;
  font-size: 1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.contact-form button:hover {
  background-color: #1931ac;
}

/* Footer */
footer.site-footer {
  background-color: #2341e1;
  color: #fff;
  padding: 20px 0;
  text-align: center;
}
.site-footer p {
  margin: 0;
}