

/*
Theme Name: Project 2 Theme
Theme URI: https://myblocktheme.com/my-block-theme
Author: George Akaeze
Author URI: https://myblocktheme.com
Description: My DGL233 Project 2 Classic Theme which is a clean, modern WordPress block theme built for DGL233 Project 2, designed for flexible layouts, strong typography, and accessible design. It includes a curated color system, fluid type scale, and block patterns that make it easy to build portfolios, landing pages, and content‑rich sites with a consistent visual voice.
Version: 1.0
Requires at least: 6.4
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-block-theme
Tags: one-column, custom-colors, custom-menu, custom-logo, editor-style, featured-images, site-editor, block-editor-patterns, rtl-language-support, sticky-post, threaded-comments, translation-ready, wide-blocks, block-styles, style-variations, accessibility-ready, blog, portfolio, news
*/


/* Josh Comeau CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

*:not(dialog) {
  margin: 0;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
}
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/* Base */
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3 {
  margin-bottom: 0.8rem;
  line-height: 1.2;
  text-align: left;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, textarea {
  font: inherit;
}

/* Container */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Global section spacing - tighter */
section {
  padding: 3rem 0 2rem;
}

h2 {
  margin-bottom: 1.6rem;
  font-size: 2.8rem;
}
/* Header Menu */
header {
    background: #000;
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 a {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.main-menu a {
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.main-menu a:hover {
    color: #ffbe0b;
}


/* Hero */
.hero {
  padding: 6rem 0 4rem;
  background: #f9f9f9;
  text-align: left;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 0.4rem;
}

.hero h2 {
  font-size: 2rem;
  color: #555;
  margin-bottom: 1.2rem;
}

.hero-intro {
  max-width: 680px;
  margin-bottom: 1.8rem;
  font-size: 1.15rem;
  line-height: 1.65;
}

.btn-contact {
  display: inline-block;
  padding: 0.9rem 2.4rem;
  background: #000;
  color: white;
  border-radius: 50px;
  font-weight: 600;
}

/* About */
#about {
  padding: 3rem 0 2rem;
}

#about h2 {
  margin-bottom: 1.6rem;
}

#about .about-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
}

#about .about-text {
  flex: 1 1 55%;
  font-size: 1.1rem;
  line-height: 1.65;
}

#about .about-photo {
  flex: 1 1 40%;
  text-align: right;
}

#about .about-photo img {
  max-width: 380px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

@media (max-width: 767px) {
  #about .about-row {
    flex-direction: column;
  }
  #about .about-photo {
    text-align: center;
  }
}

/* Skills */
#skills {
  padding: 3rem 0 2rem;
  background: #f8f9fa;
}

#skills h2 {
  margin-bottom: 1.8rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
  gap: 1.8rem;
  justify-content: center;
  justify-content: left;
}

.skill-card {
  background: white;
  border-radius: 12px;
  padding: 1.8rem 1.4rem;
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  text-align: left;
  max-width: 320px;
}

.skill-card img {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}

.skill-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}

.skill-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Work Experience & Education */
#experience {
  padding: 3rem 0 0;
}
 #education {
  padding: 0rem 0 2rem;
}

#experience h2, #education h2 {
  margin-bottom: 1.6rem;
}

.job-entry, .edu-entry {
  margin: 0 0 2rem 0;
  padding: 0 0 1.5rem;
  border-bottom: 1px solid #eee;
}

.job-entry h3, .edu-entry h3 {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.dates {
  display: block;
  color: #666;
  font-style: italic;
  margin-bottom: 0.8rem;
}

.job-entry p {
  margin-bottom: 0;
  text-align: left;
}
 .edu-entry p {
  margin-bottom: 1rem;
  text-align: left;
}

/* Contact */
#contact {
  padding: 3rem 0 2rem;
  background: #000;
  color: white;
  text-align: center;
}

#contact h2 {
  margin-bottom: 1.8rem;
}

.contact-form {
  max-width: 620px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.4rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem;
  border: none;
  border-radius: 8px;
  background: #222;
  color: white;
}

.form-group textarea {
  min-height: 130px;
}

#contact button {
  width: 100%;
  padding: 1rem;
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
}
/* Footer */
footer {
    background: #111;
    color: #aaa;
    padding: 3rem 0 2rem;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    margin: 0;
    font-size: 0.95rem;
}

.social-icons {
    display: flex;
    gap: 1.8rem;
}

.social-icons a {
    color: #aaa;
    font-size: 1.8rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: white;
}

/* Mobile – stack vertically */
@media (max-width: 767px) {
    .footer-content {
        flex-direction: column;
    }
}


/* Project Single – Mobile-first */
.project-header {
    padding: 4rem 0 2rem;
    text-align: left;
}

.project-header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.project-date {
    color: #666;
    font-style: italic;
    margin-bottom: 1rem;
}

.project-excerpt {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #555;
}

.project-header img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.project-content {
    line-height: 1.7;
    font-size: 1.05rem;
    margin-bottom: 3rem;
}

.project-custom a {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #000;
    color: white;
    border-radius: 50px;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.project-custom p {
    font-size: 1rem;
    color: #333;
}

/* Desktop – larger fonts, centered content */
@media (min-width: 768px) {
    .project-header h1 {
        font-size: 3.8rem;
    }

    .project-header img {
        max-width: 800px;
        margin: 0 auto 3rem;
    }

    .project-content {
        max-width: 800px;
        margin: 0 auto 4rem;
    }

    .project-custom {
        max-width: 800px;
        margin: 0 auto;
    }
}

/* Project Archive – Mobile-first */
.project-archive {
    padding: 5rem 0;
}

.project-archive h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
    overflow: hidden;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h2 {
    font-size: 1.8rem;
    margin: 1.5rem 1.5rem 0.5rem;
}

.project-card p {
    font-size: 1rem;
    color: #555;
    margin: 0 1.5rem 1.5rem;
}

.project-card a {
    color: #000;
}

/* Desktop – larger grid */
@media (min-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Contact Page Specific */
.contact-page {
  padding: 5rem 0 4rem;
  background: #f9f9f9;
}

.contact-page h1 {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.page-content {
  max-width: 800px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: left;
}

.page-content p {
  margin-bottom: 1.5rem;
}

/* Make form centered and wider on this page if desired */
.contact-form {
  max-width: 680px;
  margin: 0 auto;
}

/* Center form button on mobile */
@media (max-width: 767px) {
  .contact-page h1 {
    font-size: 2.6rem;
  }
}

/* Refined Contact Page Styles */

/* Hero Improvements */
.contact-hero {
  margin-bottom: 4rem;
}

.hero-bg {
  background-size: cover;
  background-position: center 30%; /* Adjust if subject is cropped oddly */
  min-height: 50vh;
  position: relative;
}

.hero-overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.7));
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-overlay h1 {
  font-size: 3.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

@media (max-width: 767px) {
  .hero-overlay h1 {
    font-size: 2.8rem;
  }
  .hero-bg {
    min-height: 40vh;
  }
}

/* Content Area */
.contact-content {
  padding: 1rem 0 5rem;
}

.page-intro {
  max-width: 760px;
  margin: 0 auto 3rem;
  font-size: 1.2rem;
  line-height: 1.8;
  text-align: center;
  color: #444;
}

.contact-details {
  max-width: 680px;
  margin: 0 auto 4rem;
  text-align: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.contact-details h2 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  color: #000;
}

.contact-details p,
.contact-details ul {
  font-size: 1.1rem;
  line-height: 1.7;
}

.contact-details ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.contact-details a {
  color: #ffbe0b; /* Your accent color */
  font-weight: 600;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Form Styling – Match your theme's button style */
.contact-form-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.wpcf7-form {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.wpcf7-form p,
.wpcf7-form label {
  margin-bottom: 1.2rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  background: #fafafa;
  transition: border 0.3s;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  border-color: #000;
  outline: none;
}

.wpcf7-form input[type="submit"] {
  width: 100%;
  padding: 1.1rem;
  background: #000;
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s;
}

.wpcf7-form input[type="submit"]:hover {
  background: #222;
}

/* CF7 Success/Error Messages */
.wpcf7-response-output {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 10px;
  font-weight: 500;
}

.wpcf7-mail-sent-ok {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* 404 Page - Exact Mockup Style with Your SVG */
.error-404 {
  background: #ffffff; /* Clean white like mockup */
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.error-section .container {
  max-width: 800px;
}

.error-illustration-figure {
  margin: 0 auto 1.5rem;
  max-width: 320px; /* Adjust if your SVG needs bigger/smaller */
}

.error-illustration {
  width: 100%;
  height: auto;
  display: block;
}

.error-number {
  font-size: 9rem;          /* Very large 404 */
  font-weight: 900;
  line-height: 0.9;
  color: #000;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.05em;
}

.error-message {
  font-size: 1.35rem;
  line-height: 1.6;
  color: #333;
  margin: 0 auto 2.5rem;
  max-width: 620px;
}

.btn-home {
  display: inline-block;
  padding: 1.1rem 3rem;
  background: #001a00;      /* Dark green like your mockup button */
  color: #ffffff;
  border-radius: 9999px;    /* Very rounded */
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn-home:hover {
  background: #003300;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}

.error-search {
  max-width: 480px;
  margin: 2.5rem auto 0;
}

.error-search .search-form {
  display: flex;
  border-radius: 9999px;
  overflow: hidden;
}

.error-search input[type="search"] {
  flex: 1;
  padding: 0.9rem 1.3rem;
  border: 2px solid #ddd;
  border-right: none;
  font-size: 1rem;
}

.error-search input[type="submit"] {
  padding: 0.9rem 1.8rem;
  background: #001a00;
  color: white;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 767px) {
  .error-number {
    font-size: 6.5rem;
  }
  .error-message {
    font-size: 1.2rem;
  }
  .btn-home {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
  }
}

/* Bonus: Project Navigation */
.project-navigation {
  padding: 3rem 0;
  background: #f8f9fa;
  text-align: center;
}

.project-navigation h2 {
  font-size: 2.2rem;
  margin-bottom: 2rem;
}

.nav-cards {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.nav-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.07);
  overflow: hidden;
  text-align: center;
  flex: 1;
  max-width: 400px;
  transition: transform 0.3s;
}

.nav-card:hover {
  transform: translateY(-8px);
}

.nav-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.nav-card h3 {
  font-size: 1.6rem;
  margin: 1rem 1rem 0.5rem;
  color: #000;
}

.nav-label {
  display: block;
  font-size: 1rem;
  color: #ffbe0b;
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  .nav-cards {
    flex-direction: column;
  }
}

/* Bonus: Thank You Page */
.thank-you {
  padding: 8rem 0;
  background: #f9f9f9;
}

.thank-you h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.thank-you p {
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

.thank-you .btn-home {
  padding: 1rem 2.5rem;
  background: #000;
  color: white;
  border-radius: 50px;
}