/* ================================
   GLOBAL STYLES & VARIABLES
   ================================ */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-bg: #ecf0f1;
  --dark-text: #2c3e50;
  --light-text: #7f8c8d;
  --white: #ffffff;
  --border-radius: 8px;
  --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark-text);
  background-color: var(--light-bg);
}

html {
  scroll-behavior: smooth;
}

/* ================================
   NAVIGATION BAR
   ================================ */
nav {
  background-color: var(--primary-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--box-shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 1rem;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: calc(100% - 2rem);
}

nav a:hover {
  color: var(--secondary-color);
}

nav a.active {
  color: var(--secondary-color);
}

/* ================================
   DROPDOWN MENUS
   ================================ */
.nav-item-dropdown {
  position: relative;
}

.dropdown-menu {
  list-style: none;
  padding: 0;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-color);
  min-width: 220px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.nav-item-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
  margin: 0;
}

.dropdown-menu li a {
  display: block;
  padding: 0.8rem 1.5rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border-radius: 0;
}

.dropdown-menu li a:hover {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--secondary-color);
}

.dropdown-menu li:first-child a {
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.dropdown-menu li:last-child a {
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* Mobile dropdown styling */
@media (max-width: 894px) {
  .dropdown-menu {
    position: static;
    display: none;
    background-color: rgba(52, 152, 219, 0.1);
    box-shadow: none;
    transition: all 0.3s ease;
  }

  .nav-item-dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    padding-left: 2rem;
  }
}

/* ================================
   HEADER & HERO SECTION
   ================================ */
header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
  font-size: 1.3rem;
  opacity: 0.9;
}

/* ================================
   CONTAINER & LAYOUT
   ================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

main {
  min-height: calc(100vh - 200px);
}

/* ================================
   SECTIONS
   ================================ */
section {
  margin-bottom: 4rem;
  padding: 2rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

section h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--secondary-color);
}

section h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

section h4 {
  color: var(--secondary-color);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* ================================
   CARDS & ITEMS
   ================================ */
.card {
  background-color: var(--light-bg);
  border-left: 4px solid var(--secondary-color);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
  border-left-color: var(--accent-color);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary-color);
}

.card-subtitle {
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.card-date {
  color: var(--light-text);
  font-size: 0.9rem;
  font-style: italic;
}

.card-description {
  color: var(--dark-text);
  margin-top: 0.5rem;
  line-height: 1.6;
}

/* ================================
   PROJECT CARDS (Grid)
   ================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

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

.project-card {
  background-color: var(--white);
  border: 2px solid var(--light-bg);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-color);
}

.project-card-content {
  padding: 1.5rem;
}

.project-card-image {
  text-align: center;
  padding: 1.5rem;
  background-color: var(--light-bg);
  border-bottom: 1px solid #ddd;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card-image img {
  max-width: 100%;
  height: auto;
}

.centered-image-container {
  text-align: center;
  margin: 2rem 0;
}

.pixelpaws-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-logo {
  width: 150px;
  height: 150px;
  object-fit: contain;
  object-position: center;
}

.quickfit-logo {
  width: 118px;
  height: 118px;
}

.project-card:has(.quickfit-logo) .project-card-image {
  min-height: 200px;
}

.learning-whiz-logo {
  height: 180px !important;
}

.project-card-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.project-card-desc {
  color: var(--light-text);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.project-card-timeline {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.project-card-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag {
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
}

.experience-card {
  background-color: var(--white);
  border: 2px solid var(--light-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.experience-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--secondary-color);
}

.experience-card-header {
  margin-bottom: 1rem;
}

.experience-card-title {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 0.25rem;
}

.experience-card-company {
  color: var(--secondary-color);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.experience-card-date {
  color: var(--light-text);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.experience-card-desc {
  color: var(--light-text);
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.experience-card-skills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.skill-tag {
  background-color: var(--light-bg);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.view-more {
  color: var(--secondary-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.view-more:hover {
  color: var(--accent-color);
}

/* ================================
   BUTTONS & LINKS
   ================================ */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background-color: var(--secondary-color);
  color: var(--white);
  text-decoration: none;
  border-radius: var(--border-radius);
  border: 2px solid var(--secondary-color);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-size: 1rem;
}

.btn:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--white);
}

.pixelpaws-link {
  color: white;
  text-decoration: none;
  font-size: medium;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 175px;
  height: 50px;
  background-color: var(--secondary-color);
  border-radius: 30px;
  transition: var(--transition);
  padding: 0 !important;
  margin: 0 0.75rem 1rem 0 !important;
}

.pixelpaws-link:hover {
  background-color: var(--primary-color);
}

.tag .pixelpaws-link {
  background-color: var(--secondary-color);
}

.tag:has(.pixelpaws-link) {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
}

.pixelpaws-link:hover {
  background-color: var(--primary-color);
}

/* ================================
   FOOTER
   ================================ */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

footer p {
  margin: 0.5rem 0;
}

footer a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--accent-color);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.social-links a {
  font-size: 1.2rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ================================
   TIMELINE
   ================================ */
.timeline {
  position: relative;
  padding: 1rem 0;
}

.timeline-item {
  padding-left: 2rem;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--secondary-color);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2rem;
  width: 0;
  height: calc(100% + 1rem);
  border-left: 2px solid var(--light-bg);
}

.timeline-item:last-child::after {
  display: none;
}

/* ================================
   ABOUT SECTION
   ================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.about-text h3 {
  margin-top: 0;
}

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

.profile-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--secondary-color);
}

/* ================================
   SKILLS SECTION
   ================================ */
.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.skill-item {
  background-color: var(--light-bg);
  padding: 1rem;
  border-radius: var(--border-radius);
  text-align: center;
}

.skill-item h4 {
  margin-top: 0;
  color: var(--secondary-color);
}

.learning-outcomes-list {
  margin-left: 0;
  padding-left: 1.5rem;
  line-height: 1.8;
}

.learning-outcomes-list li {
  margin-bottom: 0.8rem;
  text-align: left;
}

/* ================================
   CONTACT FORM
   ================================ */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--primary-color);
}

input,
textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--light-bg);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

/* ================================
   PROJECT DETAIL PAGES
   ================================ */
.navbar {
  background-color: var(--primary-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--box-shadow);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
}

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

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 1rem;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: calc(100% - 2rem);
}

.nav-menu a:hover {
  color: var(--secondary-color);
}

.project-detail {
  max-width: 1000px;
  margin: 0 auto;
}

.project-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 4rem 2rem;
  text-align: center;
  margin: -2rem -2rem 2rem -2rem;
  border-radius: 0;
}

.back-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
  margin-bottom: 1rem;
}

.back-link:hover {
  color: var(--accent-color);
  transform: translateX(-5px);
}

.project-header .back-link {
  color: rgba(255, 255, 255, 0.8);
}

.project-header .back-link:hover {
  color: var(--white);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.project-header h1 {
  font-size: 2.8rem;
  color: var(--white);
  margin: 0.5rem 0 0.5rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.project-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.project-section {
  background-color: var(--white);
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.project-section h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--secondary-color);
}

.project-section h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.project-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.info-item {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-color);
}

.info-item h3 {
  margin-top: 0;
  color: var(--secondary-color);
  font-size: 1rem;
  font-weight: 600;
}

.info-item p {
  margin: 0.5rem 0 0 0;
  color: var(--dark-text);
  font-size: 0.95rem;
}

.features-list {
  margin: 1rem 0 1rem 1.5rem;
  padding: 0;
}

.features-list li {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--dark-text);
}

.tech-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0;
}

.tech-box {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
  transition: var(--transition);
}

.tech-box:hover {
  border-color: var(--secondary-color);
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.1);
}

.tech-box h3 {
  margin-top: 0;
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.tech-box p {
  margin: 0.5rem 0 0 0;
  color: var(--light-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.highlight-card {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--secondary-color);
}

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

.highlight-card p {
  margin: 0.5rem 0 0 0;
  color: var(--dark-text);
  line-height: 1.6;
  font-size: 0.95rem;
}

.project-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 2px solid var(--light-bg);
}

pre {
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  overflow-x: auto;
  margin: 1rem 0;
  border-left: 4px solid var(--secondary-color);
}

pre code {
  color: var(--dark-text);
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  word-wrap: break-word;
  white-space: pre-wrap;
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */
@media (max-width: 768px) {
  .project-logo {
    height: 50px;
  }
}

@media (max-width: 894px) {
  header h1 {
    font-size: 2rem;
  }

  header p {
    font-size: 1rem;
  }

  .hamburger {
    display: block;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: none;
    padding: 0;
    display: none;
    margin-top: 1rem;
  }

  nav ul.active {
    display: flex;
  }

  nav li {
    width: 100%;
  }

  nav a {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 0;
    font-size: 1rem;
  }

  nav a::after {
    display: none;
  }

  nav a:hover,
  nav a.active {
    background-color: var(--secondary-color);
    color: var(--white);
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  section {
    padding: 1.5rem;
  }

  .container {
    padding: 0 1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-logo {
    height: 120px;
  }

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

@media (max-width: 480px) {
  header {
    padding: 2rem 1rem;
  }

  header h1 {
    font-size: 1.5rem;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav a {
    display: block;
    padding: 0.8rem 1rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .social-links {
    gap: 1rem;
  }

  .project-logo {
    height: 100px;
  }
}

/* ================================
   MODAL STYLES
   ================================ */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  animation: slideIn 0.3s ease;
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  color: var(--primary-color);
  margin: 0;
}

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-body p {
  color: var(--light-text);
  line-height: 1.6;
  margin: 0;
}

.modal-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}