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

body {
  font-family: "Times New Roman", Times, serif;
  background: linear-gradient(180deg, #0D1117 0%, #111827 100%);
  color: #E2E8F0;
  line-height: 1.6;
  font-size: 18px;
}

h1 {
  font-size: 2.4em;
  margin-bottom: 15px;
}

h2 {
  font-size: 2em;
  margin-bottom: 15px;
  color: #60A5FA;
  border-bottom: 2px solid #3B82F6;
  display: inline-block;
  padding-bottom: 8px;
}

h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #60A5FA;
}

p {
  font-size: 1.1em;
  margin: 8px 0;
  line-height: 1.6;
  color: #E2E8F0;
}

#logo {
  position: absolute;
  top: 40px;
  left: 60px;
  width: 132px;
  z-index: 70;
}

/* New media query for mobile responsiveness */
@media (max-width: 859px) {
  body {
    font-size: 16px;
  }

  #logo {
    width: 80px;
    top: 20px;
    left: 20px;
  }

  .hero {
    padding-top: 30px;
    padding-bottom: 15px;
  }

}

#hamburger {
  position: fixed;
  top: 30px;
  right: 40px;
  z-index: 80;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
}

#hamburger .bar {
  width: 30px;
  height: 4px;
  margin: 3px 0;
  background: #3B82F6;
  border-radius: 8px;
  transition: all 0.3s ease;
}

#hamburger.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

#hamburger.open .bar:nth-child(2) {
  opacity: 0;
}

#hamburger.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 210px;
  height: 100vh;
  background: #111827;
  padding-top: 85px;
  text-align: center;
  z-index: 75;
  transition: right 0.3s ease-in-out;
  border-left: 1px solid rgba(59, 130, 246, 0.2);
}

.mobile-nav.open {
  right: 0;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px;
  text-align: center;
  align-items: center;
}

.mobile-nav nav a {
  display: block;
  color: #E2E8F0;
  text-decoration: none;
  font-size: 1.2em;
  padding: 12px 25px;
  transition: color 0.3s;
  position: relative;
}

.mobile-nav nav a:hover {
  color: #60A5FA;
}

.mobile-nav nav a:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(to right,
    rgba(59, 130, 246, 0) 0%,
    rgba(59, 130, 246, 0.7) 25%,
    rgba(59, 130, 246, 1) 50%,
    rgba(59, 130, 246, 0.7) 75%,
    rgba(59, 130, 246, 0) 100%
  );
}

.mobile-nav nav .menu-linen-app {
  margin-top: 25px;
}

.mobile-nav nav .menu-linen-app,
.mobile-nav nav .menu-shopall-app {
  font-size: 1.3em;
  font-style: italic;
  color: #E2E8F0;
}

.nav-close {
  position: absolute;
  top: 30px;
  right: 30px;
  background: transparent;
  color: #3B82F6;
  font-size: 32px;
  border: none;
  cursor: pointer;
}

.hero {
  padding-top: 60px;
  padding-bottom: 30px;
  text-align: center;
  border-bottom: 1px solid rgba(59, 130, 246, 0.15);
  background-image: url('../assets/images/headerBkg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}

.accent {
  color: #60A5FA;
}

.tagline {
  font-size: 1.1em;
  color: rgba(226, 232, 240, 0.85);
  margin-bottom: 15px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.lead {
  max-width: 800px;
  font-size: 1.15em;
  color: rgba(226, 232, 240, 0.85);
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
}

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

.btn {
  background: #3B82F6;
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1em;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.btn:hover {
  background: #60A5FA;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.btn.outline {
  background: transparent;
  color: #E2E8F0;
  border: 2px solid rgba(59, 130, 246, 0.4);
}

.btn.outline:hover {
  border-color: #60A5FA;
  color: #60A5FA;
}

.card,
.skill-card {
  background: linear-gradient(180deg, #1E2D40, #111827);
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  font-size: 1em;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.card:hover,
.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.section {
  padding-top: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.1);
  text-align: center;
}

#currently-learning {
  padding-top: 0px;
}

.subheading {
  margin-top: 30px;
  margin-bottom: 10px;
  color: #60A5FA;
  text-align: center;
}

.about-list, .goals-list {
  margin-top: 20px;
  padding-left: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.about-list li, .goals-list li {
  margin: 12px 0;
  padding-left: 20px;
  position: relative;
}

.about-list li::before {
  content: '•';
  color: #3B82F6;
  display: inline-block;
  width: 20px;
  margin-left: -20px;
  font-weight: bold;
}

/* Key Points, Goals, and Experience Lists */
.key-points-list, .goals-list, .experience-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  margin: 20px 0;
  text-align: center;
  max-width: 100%;
}

.key-point, .goal-item, .experience-item {
  margin: 0;
  padding: 15px 20px;
  position: relative;
  color: #E2E8F0;
  font-size: 1.05em;
  line-height: 1.6;
  text-align: center;
}

.key-point:not(:last-child)::after, .goal-item:not(:last-child)::after, .experience-item:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(to right,
    rgba(59, 130, 246, 0) 0%,
    rgba(59, 130, 246, 0.7) 25%,
    rgba(59, 130, 246, 1) 50%,
    rgba(59, 130, 246, 0.7) 75%,
    rgba(59, 130, 246, 0) 100%
  );
}

/* Legacy list styles */
.about-feature-list, .goals-list {
  list-style: none;
  padding: 0;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-feature-list li, .goals-list li {
  margin: 15px auto;
  position: relative;
  padding-bottom: 25px;
  padding-top: 10px;
  line-height: 1.5;
  color: #E2E8F0;
  font-size: 1.1em;
}

.about-feature-list li::before, .goals-list li::before {
  content: none;
}

/* Thinning out line separator */
.about-feature-list li:not(:last-child)::after, .goals-list li:not(:last-child)::after, .project-features li:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(to right,
    rgba(59, 130, 246, 0) 0%,
    rgba(59, 130, 246, 0.7) 25%,
    rgba(59, 130, 246, 1) 50%,
    rgba(59, 130, 246, 0.7) 75%,
    rgba(59, 130, 246, 0) 100%
  );
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}



.project-item {
  background: linear-gradient(180deg, #1E2D40, #111827);
  padding: 24px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.15);
  margin-bottom: 24px;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.project-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* Tap/active feedback for mobile on the link indicator */
.project-link-indicator:active {
  transform: scale(0.95);
}

/* Active state on whole card for desktop tap */
@media (min-width: 769px) {
  .project-item:active {
    transform: scale(0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border-color: #3B82F6;
  }
}

/* Always-visible link indicator for clickable project cards */
.project-link-indicator {
  display: inline-block;
  margin-top: 16px;
  color: #3B82F6;
  font-size: 0.95em;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.project-item:hover .project-link-indicator {
  transform: translateX(4px);
}

/* === Mobile Accordion for Projects === */

/* Desktop: hide accordion-only elements, show everything */
.project-summary,
.project-chevron {
  display: none;
}

/* Mobile accordion behavior */
@media (max-width: 768px) {
  .project-summary {
    display: block;
    font-size: 0.9em;
    color: rgba(226, 232, 240, 0.7);
    margin: 4px 0 0;
    line-height: 1.4;
  }

  .project-chevron {
    display: inline-block;
    color: #3B82F6;
    font-size: 0.75em;
    transition: transform 0.3s ease;
    margin-top: 8px;
  }

  .project-item.expanded .project-chevron {
    transform: rotate(180deg);
  }

  .project-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
  }

  .project-item.expanded .project-details {
    max-height: 600px;
    opacity: 1;
  }

  .project-header {
    cursor: pointer;
  }
}

.project-item h3 {
  margin-bottom: 8px;
  font-size: 1.3em;
  text-align: center;
}

.project-meta {
  color: #3B82F6;
  font-size: 0.95em;
  margin-bottom: 12px;
  font-style: italic;
  text-align: center;
}

.project-features {
  margin-top: 15px;
  padding-left: 0;
  list-style: none;
  max-width: fit-content;
  margin: 0 auto;
  text-align: center;
}

.project-features li {
  margin: 8px 0;
  padding-left: 20px;
  position: relative;
  text-align: center;
}

.project-features li::before {
  content: none;
  color: #3B82F6;
  display: inline-block;
  width: 20px;
  margin-left: -20px;
  font-weight: bold;
  text-align: initial;
}

.learning-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
}

.learning-tags span {
  padding: 12px 18px;
  border-radius: 22px;
  font-size: 0.95em;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #E2E8F0;
  transition: background 0.3s, border 0.3s;
}

input,
textarea {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: #0D1117;
  color: #E2E8F0;
  font-family: "Times New Roman", Times, serif;
  font-size: 1em;
  transition: border 0.3s, background 0.3s;
}

input:focus,
textarea:focus {
  border-color: #3B82F6;
  outline: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

button {
  background: #3B82F6;
  color: #fff;
  padding: 14px;
  border-radius: 8px;
  border: none;
  font-size: 1em;
  cursor: pointer;
  font-family: "Times New Roman", Times, serif;
  transition: all 0.3s;
}

button:hover {
  background: #60A5FA;
}

.success {
  color: #86efac;
  font-size: 1em;
  margin-top: 10px;
}

.quote {
  margin-top: 20px;
  font-size: 1em;
  color: rgba(226, 232, 240, 0.75);
  font-style: italic;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-links a {
  color: #E2E8F0;
  background: #111827;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  transition: all 0.3s;
  text-decoration: none;
}

.social-links a:hover {
  color: #60A5FA;
  border-color: #3B82F6;
  background: #1E2D40;
}

#contact {
  text-align: center;
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

#contact h2 {
  text-align: center;
}

#contact > p {
  max-width: 800px;
  margin: 20px auto;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 30px auto;
}

footer {
  padding: 28px 0;
  text-align: center;
  font-size: 0.7em;
  color: rgba(226, 232, 240, 0.6);
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.form-row {
  display: flex;
  gap: 18px;
}

.form-row input {
  flex: 1;
}

#currently-learning .subheading {
  display: block;
  text-align: center;
  width: 100%;
}

#currently-learning .learning-tags {
  justify-content: center;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1422px) {
  .container {
    width: 88%;
  }

  .hero h1 {
    font-size: 2.5em;
  }
}

@media (min-width: 860px) {
  .preview-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding-top: 160px;
  }

  .mobile-nav {
    width: 250px;
  }

  .mobile-nav a {
    font-size: 1.3em;
  }

  .projects-goals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 30px;
    padding: 0 35px;
    align-items: stretch;
  }



  .project-item {
    min-height: 250px;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

.skills-goals-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

.skills-goals-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.skills-column,
.goals-column {
  padding: 0 15px;
  text-align: center;
}

@media (max-width: 767px) {
  .skills-goals-container {
    grid-template-columns: 1fr;
  }
}

/* Mobile adjustments for Skills & Goals section */
@media (max-width: 480px) {
  .container {
    padding: 20px 10px;
  }
  .skills-goals-container {
    gap: 20px;
  }

  .skills-column,
  .goals-column {
    padding: 0 5px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .skill-card {
    padding: 10px;
  }
}

.mobile-only-button {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only-button {
    display: block;
  }
}

/* Three Column Container for Skills, Goals, Learning */
.three-column-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

@media (min-width: 860px) {
  .three-column-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

/* Section Preview Styling */
.section-preview {
  max-width: 600px;
  margin: 40px auto;
  padding: 0 20px;
}

.btn-read-more {
  background-color: #3B82F6;
  color: #fff;
  border: none;
  padding: 12px 30px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
  font-family: "Times New Roman", Times, serif;
}

.btn-read-more:hover {
  background-color: #60A5FA;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-read-more:active {
  transform: translateY(0);
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  background-color: #111827;
  border: 1px solid rgba(59, 130, 246, 0.25);
  margin: 20px auto;
  padding: 40px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.lightbox-content h2,
.lightbox-content h3,
.lightbox-content h4 {
  text-align: center;
}

.lightbox-content p {
  text-align: center;
}

/* Responsive padding for mobile */
@media (max-width: 768px) {
  .lightbox-content {
    padding: 30px;
    max-width: 95%;
  }
}

.close-button {
  color: #3B82F6;
  float: right;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
  z-index: 110;
}

.close-button:hover,
.close-button:focus {
  color: #60A5FA;
  text-decoration: none;
  cursor: pointer;
}

/* Project Boxes */
.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  width: 92%;
  max-width: 1200px;
  margin: 30px auto;
}


.project-box {
  background: linear-gradient(180deg, #1E2D40, #111827);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  padding: 16px 30px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@media (min-width: 860px) {
  .project-box {
    cursor: pointer;
  }

  .project-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(59, 130, 246, 0.4);
  }
}

@media (max-width: 859px) {
  .project-box {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.1);
  }
}

.project-box h3 {
  font-size: 1.5em;
  color: #60A5FA;
  margin-top: 0;
  margin-bottom: 10px;
  text-align: center;
}

.project-short-desc {
  font-size: 1em;
  color: #94A3B8;
  margin-bottom: 20px;
  font-style: italic;
  text-align: center;
}

.project-accordion-btn {
  background: none;
  border: none;
  font-size: 1.5em;
  color: #3B82F6;
  cursor: pointer;
  padding: 10px;
  transition: transform 0.3s ease;
  margin: 15px auto;
  display: block;
  width: auto;
}

.project-accordion-btn .chevron {
  display: inline-block;
  transition: transform 0.3s ease;
}

.project-accordion-btn.expanded .chevron {
  transform: rotate(180deg);
}

.project-accordion {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.project-accordion.expanded {
  max-height: 500px;
  opacity: 1;
}

.project-description {
  color: #E2E8F0;
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 12px;
  padding-bottom: 12px;
  position: relative;
  text-align: center;
}

.project-description:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(to right,
    rgba(59, 130, 246, 0) 0%,
    rgba(59, 130, 246, 0.7) 25%,
    rgba(59, 130, 246, 1) 50%,
    rgba(59, 130, 246, 0.7) 75%,
    rgba(59, 130, 246, 0) 100%
  );
}

#projects {
  text-align: center;
}

#projects h2 {
  text-align: center;
}

/* Project Item Full (in Lightbox) */
.project-item-full {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.2);
}

.project-item-full:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.project-item-full h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.project-item-full h4 {
  color: #60A5FA;
  margin-top: 15px;
  margin-bottom: 10px;
  font-size: 1.1em;
}

.project-item-full ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.project-item-full li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.project-summary {
  font-style: italic;
  color: #94A3B8;
  margin-bottom: 10px;
}

.project-meta {
  color: #94A3B8;
  font-size: 0.95em;
  margin-bottom: 15px;
}

/* Project Link Button */
.project-link-button {
  display: inline-block;
  background-color: #3B82F6;
  color: #fff;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  margin-top: 15px;
  transition: all 0.3s ease;
  font-family: "Times New Roman", Times, serif;
  font-size: 1em;
}

.project-link-button:hover {
  background-color: #60A5FA;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Learning Tags */
.learning-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

.learning-tags span {
  background-color: rgba(59, 130, 246, 0.1);
  border: 1px solid #3B82F6;
  color: #60A5FA;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.95em;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 15px;
}

.skill-card {
  background-color: rgba(59, 130, 246, 0.07);
  border-left: 3px solid #3B82F6;
  padding: 12px 15px;
  border-radius: 5px;
  text-align: left;
  font-size: 0.9em;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

/* About and Goals Lists */
.about-feature-list,
.goals-list {
  margin-top: 20px;
  padding-left: 20px;
  list-style-type: disc;
}

.about-feature-list li,
.goals-list li {
  margin: 12px 0;
  line-height: 1.6;
}
