@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&family=Nata+Sans:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&family=Nata+Sans:wght@100..900&display=swap");

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "League Spartan", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

/* ===== REUSABLE COMPONENTS ===== */
.section {
  margin-top: 3rem;
  width: 100%;
  color: black;
  opacity: 0.8;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.list-styled {
  margin-top: 2rem;
  margin-left: 2rem;
}

.list-item {
  margin-top: 0.5rem;
  opacity: 0.8;
}

.clickable {
  cursor: pointer;
  transition: color 0.2s ease;
}

.clickable:hover {
  color: #333;
}

.blue-link {
  color: blue;
  text-decoration: underline;
}

.blue-link:hover {
  color: darkblue;
}

.text-content {
  font-size: 1.1rem;
  font-weight: 400;
  color: black;
}

/* ===== LAYOUT ===== */
.main-container {
  margin-top: 30px;
  width: 40%;
  margin: auto;
  padding-bottom: 2rem;
}

/* ===== NAVIGATION ===== */
#nav {
  width: 100%;
  height: auto;
  margin-top: 25px;
  padding: 20px 0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 600;
  font-size: 1.1rem;
  color: #333;
  border: 2px solid #333;
  padding: 6px 10px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.logo:hover {
  background-color: #333;
  color: white;
}

.nav-links {
  gap: 10px;
  display: flex;
  flex-direction: row;
}

.nav-links > li {
  list-style-type: none;
}

.nav-links > li > a {
  color: gray;
  text-decoration: underline;
}

/* ===== HERO SECTION ===== */
.hero-section {
  margin-top: 3rem;
  width: 100%;
  color: black;
  opacity: 0.8;
}

.hero-section h2 {
  font-size: 2rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.hero-section-text {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
}

.blinking-dot {
  animation: blink 1s infinite;
}

/* ===== PROJECT COMPONENTS ===== */
.project-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.project-title {
  flex: 1;
}

.show-more {
  color: blue;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  padding: 2px 4px;
  border-radius: 2px;
  transition: all 0.15s ease;
  font-weight: bold;
  vertical-align: middle;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.show-more:hover {
  color: darkblue;
  background-color: #f0f0f0;
  transform: scale(1.05);
}

.down-caret {
  font-size: 1.3rem;
  transform: scaleY(1.1);
}

.up-caret {
  font-size: 1.1rem;
}

.project-details {
  display: none;
  margin-top: 0.8rem;
  padding: 15px;
  background-color: #f9f9f9;
  border-left: 3px solid blue;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #555;
}

.project-story {
  margin-bottom: 1.5rem;
}

.project-story h5,
.project-tech h5 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.project-story p {
  margin: 0;
  line-height: 1.6;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background-color: #e3f2fd;
  color: #1976d2;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid #bbdefb;
}

/* ===== PERSONAL CARDS ===== */
.personal-cards {
  margin-top: 3rem;
}

.personal-card {
  border: 1px solid #e0e0e0;
  margin-bottom: 8px;
  background-color: #f5f5f5;
  transition: all 0.2s ease;
}

.personal-card:hover {
  border-color: #ccc;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  user-select: none;
}

.card-title {
  font-size: 0.9rem;
  font-weight: 400;
  color: #333;
  letter-spacing: 0.5px;
}

.card-toggle {
  font-size: 0.8rem;
  font-weight: 500;
  color: #666;
  text-decoration: underline;
}

.card-content {
  display: none;
  padding: 0 20px 20px 20px;
  color: #555;
  line-height: 1.6;
  font-size: 0.95rem;
}

.card-content p {
  margin: 0;
}

/* ===== FOOTER ===== */
.footer {
  margin-top: 2rem;
  padding: 20px 0;
  background-color: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.footer-content {
  width: 40%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #666;
}

.up-arrow {
  animation: bounce 1.5s ease-in-out infinite;
  margin-left: 5px;
  display: inline-block;
}

/* ===== ANIMATIONS ===== */
@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes blink {
  0%,
  40% {
    opacity: 1;
  }
  70% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* ===== SECTION APPLICATIONS ===== */
.achievement,
.projects,
.professional-experience,
.other-projects {
  margin-top: 3rem;
  width: 100%;
  color: black;
  opacity: 0.8;
}

.achievement h4,
.projects h4,
.professional-experience h4,
.other-projects h4,
.TLDR h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.achievement-list,
.projects-list,
.experience-list,
.other-projects-list {
  margin-top: 2rem;
  margin-left: 2rem;
}

.achievement-list > li,
.projects-list > li,
.experience-list > li,
.other-projects-list > li {
  margin-top: 0.5rem;
  opacity: 0.8;
}

.achievement-list > li {
  margin-top: 0.5rem;
  line-height: 1.5;
}

.projects-list > li {
  margin-top: 0.5rem;
}

.directory {
  margin-top: 3rem;
  margin-bottom: 0.5rem;
  width: 100%;
  color: black;
  opacity: 0.8;
}

.directory h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  margin-bottom: 1rem;
}

.directory-list {
  margin-top: 2rem;
  margin-left: 2rem;
  list-style-type: disc;
}

.directory-list > li {
  margin-top: 0.3rem;
}

.directory-list a {
  color: #0000ff;
  text-decoration: underline;
  font-size: 1.1rem;
}

.directory-list a:hover {
  color: #0000cc;
}

.tag-line {
  margin-top: 3rem;
  font-size: 1.1rem;
  font-weight: 400;
  color: black;
  opacity: 0.8;
}

.TLDR {
  margin-top: 3rem;
  width: 100%;
  color: black;
  opacity: 0.8;
}

.TLDR p {
  font-size: 1rem;
  font-weight: 400;
  color: #333;
  line-height: 1.6;
  margin: 0;
  margin-top: 1rem;
}

/* ===== CLICKABLE ELEMENTS ===== */
.footer-name,
.footer-arrow,
.up-arrow {
  cursor: pointer;
  transition: color 0.2s ease;
}

.footer-name:hover,
.footer-arrow:hover,
.up-arrow:hover {
  color: #333;
}

.footer-logo {
  font-weight: 600;
  color: #333;
  border: 1px solid #333;
  padding: 2px 4px;
  border-radius: 2px;
  font-size: 0.7rem;
  margin-right: 8px;
}

/* ===== EXPERIENCE SPECIFIC STYLES ===== */
.experience-entry {
  margin-top: 2rem;
}

.experience-entry:first-child {
  margin-top: 1.5rem;
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 5px;
}

.experience-company {
  font-weight: 600;
  font-size: 1rem;
  color: #333;
}

.experience-dates {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.experience-role {
  font-size: 0.95rem;
  color: #555;
  font-style: italic;
  margin-bottom: 15px;
}

.experience-summary {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 10px;
}

.experience-summary p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
  flex: 1;
}

.experience-points {
  margin-bottom: 1.5rem;
}

.experience-points ul {
  margin: 0;
  padding-left: 20px;
  list-style-type: disc;
}

.experience-points li {
  margin-bottom: 8px;
  line-height: 1.6;
  color: #555;
}

/* ===== CONTACT PAGE LAYOUT ===== */
.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contact-main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-page .footer {
  margin-top: auto;
}

/* ===== CONTACT FORM STYLES ===== */
.contact {
  margin-top: 3rem;
  margin-bottom: 2rem;
  width: 100%;
  color: black;
  opacity: 0.8;
}

.contact h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 1rem 0;
}

.contact-intro {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #f9f9f9;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #333;
  background-color: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background: linear-gradient(45deg, #87ceeb, #00bfff);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  align-self: flex-start;
  min-width: 120px;
  margin-bottom: 3rem;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 191, 255, 0.3);
}

.form-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.powered-by {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.powered-by a {
  color: blue;
  text-decoration: underline;
}

.direct-contact h5 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.5px;
}

.email-direct {
  font-size: 0.95rem;
  color: #555;
  font-family: "Courier New", monospace;
  background-color: #f5f5f5;
  padding: 8px 12px;
  border-radius: 4px;
  display: inline-block;
}

/* Success message styles */
.success-message {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  transition: opacity 0.3s ease;
}

.success-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.success-content p {
  margin: 0;
  font-size: 0.95rem;
}

/* Error message styles */
.error-message {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  transition: opacity 0.3s ease;
}

.error-content h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.error-content p {
  margin: 0;
  font-size: 0.95rem;
}

/* ===== LOADING STYLES ===== */
.loading-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-text {
  font-size: 1.2rem;
  color: #333;
  font-weight: 500;
}

/* ===== GLOBAL LINK STYLES ===== */
a {
  color: blue;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet styles (768px - 1024px) */
@media screen and (max-width: 1024px) {
  .main-container {
    width: 70%;
  }

  .footer-content {
    width: 70%;
  }
}

/* Mobile and small tablet styles (480px - 768px) */
@media screen and (max-width: 768px) {
  .main-container {
    width: 90%;
    margin-top: 20px;
  }

  .footer-content {
    width: 90%;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Navigation */
  #nav {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
    padding: 15px 0;
  }

  .nav-links {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
  }

  /* Typography */
  .hero-section h2 {
    font-size: 1.8rem;
  }

  .hero-section-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Lists */
  .achievement-list,
  .projects-list,
  .experience-list,
  .other-projects-list {
    margin-left: 1rem;
  }

  /* Achievement and projects list mobile spacing */
  .achievement-list > li,
  .projects-list > li {
    margin-top: 0.5rem;
  }

  /* Project items */
  .project-item {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    justify-content: space-between;
  }

  .project-title {
    flex: 1;
    line-height: 1.4;
  }

  .show-more {
    flex-shrink: 0;
    margin-top: 0;
    align-self: flex-start;
  }

  /* Experience header */
  .experience-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    margin-bottom: 8px;
  }

  .experience-dates {
    font-size: 0.85rem;
  }

  /* Experience summary alignment */
  .experience-summary {
    align-items: flex-start;
    gap: 10px;
  }

  .experience-summary p {
    flex: 1;
    margin: 0;
  }

  .experience-summary .show-more {
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 0;
  }

  /* Tech tags */
  .tech-tags {
    gap: 6px;
  }

  .tech-tag {
    font-size: 0.8rem;
    padding: 3px 6px;
  }

  /* Personal cards */
  .card-header {
    padding: 12px 15px;
  }

  .card-content {
    padding: 0 15px 15px 15px;
    font-size: 0.9rem;
  }

  /* Contact form */
  .contact {
    margin-top: 2rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px 12px;
  }

  .submit-btn {
    width: 100%;
    margin-bottom: 2rem;
  }

  .form-footer {
    margin-top: 2rem;
  }

  /* Directory */
  .directory-list {
    margin-left: 1rem;
  }
}

/* Small mobile styles (up to 480px) */
@media screen and (max-width: 480px) {
  .main-container {
    width: 95%;
    margin-top: 15px;
  }

  .footer-content {
    width: 95%;
  }

  /* Navigation */
  #nav {
    padding: 10px 0;
  }

  .logo {
    font-size: 1rem;
    padding: 4px 8px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  /* Typography */
  .hero-section h2 {
    font-size: 1.6rem;
  }

  .hero-section-text {
    font-size: 0.95rem;
  }

  /* Section headings */
  .achievement h4,
  .projects h4,
  .professional-experience h4,
  .other-projects h4,
  .contact h4 {
    font-size: 0.95rem;
  }

  /* Lists */
  .achievement-list,
  .projects-list,
  .experience-list,
  .other-projects-list {
    margin-left: 0.5rem;
  }

  /* Project details */
  .project-details {
    padding: 12px;
    font-size: 0.9rem;
  }

  .project-story h5,
  .project-tech h5 {
    font-size: 0.95rem;
  }

  /* Experience */
  .experience-company {
    font-size: 0.95rem;
  }

  .experience-role {
    font-size: 0.9rem;
  }

  .experience-summary p {
    font-size: 0.9rem;
  }

  /* Contact form */
  .contact-intro {
    font-size: 0.9rem;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-group input,
  .form-group textarea {
    font-size: 0.9rem;
    padding: 8px 10px;
  }

  .submit-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }

  .email-direct {
    font-size: 0.85rem;
    word-break: break-all;
  }

  /* Footer */
  .footer-content {
    font-size: 0.8rem;
    padding: 15px 0;
  }

  .footer-logo {
    font-size: 0.65rem;
  }
}

/* Landscape mobile styles */
@media screen and (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    margin-top: 2rem;
  }

  .achievement,
  .projects,
  .professional-experience,
  .other-projects,
  .contact {
    margin-top: 2rem;
  }

  .personal-cards {
    margin-top: 2rem;
  }
}
