/*
Theme Name: Project 2 Theme
Theme URI: https://github.com/ashaik3/project-2
Author: Aslam Shaik
Author URI: https://github.com/ashaik3
Description: A fully custom WordPress classic theme built for DGL233 Project 2. Hand-coded with PHP, Advanced Custom Fields, and responsive HTML/CSS. Designed as a personal portfolio showcasing projects, skills, and experience.
Version: 1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: project2
Tags: portfolio, one-column, custom-logo, custom-menu, featured-images, full-width-template, theme-options, translation-ready
*/

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

*:not(dialog) {
  margin: 0;
}

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 styles */
body {
  min-height: 100vh;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  color: #222;
  background: #fff;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #005fcc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* =====================
   HEADER
   ===================== */

.site-header {
  background: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  width: 100%;
}

.header-inner {
  position: relative;
  max-width: 70rem;
  margin: 0 auto;
  padding: 0.6rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header .custom-logo {
  max-height: 48px;
  width: auto;
}

.site-header .custom-logo-link {
  display: flex;
  align-items: center;
}

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

.primary-menu li {
  margin: 0;
}

.primary-menu a {
  text-decoration: none;
  font-weight: 500;
  color: #fff;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.primary-menu a:hover {
  color: #005fcc;
  text-decoration: none;
}

.primary-menu .current-menu-item a {
  background: #fff;
  color: #005fcc;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  font-weight: 600;
}

/* =====================
   FOOTER
   ===================== */

footer {
  padding: 2rem;
  background: #111;
  margin-top: 3rem;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1.5rem;
}

footer nav li {
  margin: 0;
}

footer nav a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

footer nav a:hover {
  color: #fff;
}

footer p {
  font-size: 0.9rem;
  color: #aaa;
  margin: 0;
}

/* =====================
   HOMEPAGE SECTIONS
   ===================== */

.section-hero,
.section-about,
.section-skills,
.section-experience,
.section-education,
.section-cta {
  padding: 1.5rem 1rem;
  max-width: 70rem;
  margin: 0 auto;
}

.section-hero h2 {
  line-height: 1.2;
}

.section-skills p {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.hero-inner {
  max-width: 70rem;
  margin: 0 auto;
}

.hero-image {
  margin-top: 2rem;
}

.hero-image img {
  width: 50%;
  height: auto;
  border-radius: 20px;
}

/* Experience & Education */
.section-experience h3,
.section-education h3 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.section-experience ul,
.section-education ul {
  margin-left: 1.25rem;
  margin-bottom: 1.5rem;
}

.section-experience li,
.section-education li {
  margin-bottom: 0.5rem;
}
.entry-title {
  display: block;
  color: #005fcc;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.1rem;
}

.entry-date {
  display: block;
  font-size: rem;
  font-weight: 600;
  color: #666;
  margin-top: 0;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

/* CTA */
.section-cta {
  background: #111;
  color: #fff;
  padding: 3rem 2rem;
  max-width: 100%;
  text-align: center;
  margin-top: 3rem;
}

.section-cta p {
  color: #ddd;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.section-cta a {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid #fff;
  border-radius: 4px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.section-cta a:hover {
  background: #fff;
  color: #111;
  text-decoration: none;
}

/* =====================
   SINGLE PROJECT
   ===================== */

.project-hero {
  max-width: 52rem;
  margin: 0 auto 2.5rem;
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  max-width: 52rem;
  margin: 0 auto;
}

.project-title {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.project-intro {
  font-size: 1.1rem;
  color: #444;
  border-left: 3px solid #005fcc;
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 2.5rem;
}

.project-meta__item dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
  margin-bottom: 0.25rem;
}

.project-meta__item dd {
  font-weight: 600;
  color: #222;
  font-size: 0.95rem;
}

.project-body {
  line-height: 1.8;
}

.project-body h2,
.project-body h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.project-body p {
  margin-bottom: 1.25rem;
}

.project-body img {
  border-radius: 6px;
  margin: 1.5rem 0;
  width: 100%;
  height: auto;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e5e5;
  flex-wrap: wrap;
}

.project-nav a {
  font-weight: 600;
  color: #005fcc;
  text-decoration: none;
  font-size: 0.95rem;
}

.project-nav a:hover {
  text-decoration: underline;
}

.project-nav__next {
  margin-left: auto;
  text-align: right;
}

/* =====================
   PROJECT ARCHIVE
   ===================== */

.archive-projects {
  max-width: 70rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.archive-header {
  margin-bottom: 2.5rem;
}

.archive-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.archive-intro {
  color: #555;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.project-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition:
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.project-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.project-card__image-link {
  display: block;
}

.project-card__image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.project-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-card__image-wrap img {
  transform: scale(1.04);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 95, 204, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
}

.project-card__overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.project-card__body {
  padding: 1.25rem;
}

.project-card__title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.project-card__title a {
  color: #222;
  text-decoration: none;
}

.project-card__title a:hover {
  color: #005fcc;
}

.project-card__excerpt {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.75rem;
}

.project-card__link {
  font-size: 0.9rem;
  font-weight: 600;
  color: #005fcc;
  text-decoration: none;
}

.project-card__link:hover {
  text-decoration: underline;
}

.no-projects {
  color: #555;
  font-style: italic;
}

/* =====================
   CONTACT PAGE
   ===================== */

.contact-page {
  max-width: 70rem;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
}

.contact-hero {
  margin-bottom: 2.5rem;
  border-radius: 8px;
  overflow: hidden;
  max-height: 20rem;
}

.contact-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-content {
  max-width: 52rem;
  margin: 0 auto;
}

.contact-content h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.contact-intro {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.5rem;
  border-left: 3px solid #005fcc;
  padding-left: 1rem;
}

.contact-details {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  line-height: 2;
}

.contact-details p {
  margin-bottom: 0.25rem;
}

.contact-form .wpcf7 {
  margin-top: 1rem;
}

.contact-form .wpcf7-form p {
  margin-bottom: 1.25rem;
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #555;
  margin-bottom: 0.4rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
  background: #fff;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #005fcc;
}

.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact-form input[type="submit"] {
  background: #005fcc;
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form input[type="submit"]:hover {
  background: #0047a3;
}

/* =====================
   404 PAGE
   ===================== */

.page-404 {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  text-align: center;
}

.page-404__content {
  max-width: 36rem;
}

.page-404__code {
  display: block;
  font-size: 8rem;
  font-weight: 700;
  line-height: 1;
  color: #e5e5e5;
  margin-bottom: 1rem;
}

.page-404__title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #222;
}

.page-404__message {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

.page-404__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.page-404__btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #005fcc;
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.page-404__btn:hover {
  background: #0047a3;
  text-decoration: none;
}

.page-404__btn--outline {
  background: transparent;
  border: 2px solid #005fcc;
  color: #005fcc;
}

.page-404__btn--outline:hover {
  background: #005fcc;
  color: #fff;
}

/* =====================
   BREAKPOINTS
   ===================== */

@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-meta {
    grid-template-columns: repeat(4, 1fr);
  }

  .project-title {
    font-size: 2.8rem;
  }
}

@media (min-width: 768px) {
  .section-about,
  .section-experience,
  .section-education {
    font-size: 1.05rem;
  }

  .hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .hero-image {
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .section-hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .section-hero p {
    max-width: 50ch;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

footer a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.2s ease;
}

footer a:hover {
  color: #fff;
}

/* =====================
   HOMEPAGE IMPROVEMENTS
   ===================== */

/* Remove distracting blue links in body content */
.section-experience a,
.section-education a,
.section-about a,
.section-skills a {
  color: inherit;
  text-decoration: none;
}

/* Hero — bigger and bolder */
.section-hero {
  padding: 4rem 2rem;
  background: #f7f7f7;
  border-bottom: 1px solid #e5e5e5;
}

.section-hero h2 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  color: #111;
}

.section-hero p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1.25rem;
}

.section-hero a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #005fcc;
  color: #fff !important;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.section-hero a:hover {
  background: #0047a3;
  text-decoration: none;
}

.hero-image img {
  width: 100%;
  max-width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Section dividers */
.section-about,
.section-skills,
.section-experience,
.section-education {
  padding: 3rem 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.section-about h2,
.section-skills h2,
.section-experience h2,
.section-education h2 {
  font-size: 1.6rem;
  color: #111;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #005fcc;
  display: inline-block;
}

/* Skills — pill tags */
.section-skills p {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-weight: normal;
  letter-spacing: normal;
}

.section-skills p br {
  display: none;
}

/* Wrap each skill line as a pill using CSS */
.skill-tag {
  display: inline-block;
  background: #f0f4ff;
  color: #005fcc;
  border: 1px solid #c0d4f5;
  border-radius: 20px;
  padding: 0.3rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

/* =====================
   JOB / EDUCATION HIGHLIGHTS
   ===================== */

.job-company {
  display: block;
  color: #005fcc;
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 0.1rem;
}

.job-date {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  margin-top: 0;
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}

/* =====================
   PROJECT SLIDER (Bonus)
   ===================== */

.section-projects-slider {
  padding: 3rem 2rem;
  border-bottom: 1px solid #f0f0f0;
  max-width: 70rem;
  margin: 0 auto;
  overflow: hidden;
}

.section-projects-slider h2 {
  font-size: 1.6rem;
  color: #111;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #005fcc;
  display: inline-block;
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
}

.slider-archive-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 600;
  color: #005fcc;
  text-decoration: none;
  font-size: 0.95rem;
}

.slider-archive-link:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .slide {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
  }
}

.slide-image-link img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.slide-body {
  padding: 1.5rem;
}

.slide-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.slide-title a {
  color: #111;
  text-decoration: none;
}

.slide-title a:hover {
  color: #005fcc;
}

.slide-excerpt {
  color: #555;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.slide-link {
  font-weight: 600;
  color: #005fcc;
  text-decoration: none;
  font-size: 0.95rem;
}

.slide-link:hover {
  text-decoration: underline;
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.25rem;
}

.slider-btn {
  background: #111;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn:hover {
  background: #005fcc;
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  padding: 0;
}

.slider-dot.active {
  background: #005fcc;
}

/* =====================
   SCROLL ANIMATIONS (Bonus)
   Sections start invisible and fade up into view
   when .visible is added by IntersectionObserver in slider.js
   ===================== */

.section-about,
.section-skills,
.section-experience,
.section-education,
.section-projects-slider {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.section-about.visible,
.section-skills.visible,
.section-experience.visible,
.section-education.visible,
.section-projects-slider.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================
   MOBILE NAV HAMBURGER
   ===================== */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 767px) {
  body {
    overflow-x: hidden;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .primary-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111;
    padding: 1rem 2rem;
    gap: 1rem;
    z-index: 99;
  }

  .primary-menu.open {
    display: flex;
  }

  .site-header {
    position: relative;
  }

  .header-inner {
    justify-content: space-between;
    padding: 0.6rem 1rem;
  }

  .project-hero,
  .project-content {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .project-title {
    font-size: 1.6rem;
  }

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

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  footer nav ul {
    justify-content: center;
  }
}
