@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* HTML Elements */
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background-color: #F0F0E8;
  overflow-x: hidden;
}

a:link { 
  text-decoration: none;
  color: inherit;
} 
a:visited { 
  text-decoration: none;
  color: inherit;
} 
a:hover { 
  text-decoration: none;
  color: inherit;
} 
a:active { 
  text-decoration: none;
  color: inherit;
}

/* Global Page */
.container {
  margin-left: 20%;
  margin-right: 20%;
  margin-top: 80px;
}

.disabled {
  cursor: not-allowed;
}

code {
  margin: 20px 0px 20px 0px;
  display: block;
  justify-content: center;
  white-space: pre-wrap;
  padding: 0px 0px 10px 10px;
  background-color: #F0F0E8 !important;
}

/* Nav Styling */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
}

.nav-title {
  font-weight: 550;
  font-size: 25px;;
}

.nav-icon {
  display: none;
  cursor: pointer;
  font-size: 24px;
}

.nav-elements {
  display: flex;
  align-items: center;
}

.nav-element {
  cursor: pointer;
  margin-right: 25px;
  font-size: 17px;
}

.underline-animation {
  display: inline-block;
  position: relative;
  padding-bottom: 5px;
}

.underline-animation::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: #d2d2ba;
  transition: transform 0.25s ease-out;
  transform-origin: bottom center;
}

.underline-animation:hover::after {
  transform: scaleX(1);
  transform-origin: bottom center;
}

.blog-button {
  padding: 7px 15px;
  font-weight: 500;
  border: 1px solid #ccc;
  border-radius: 6px;

  background: transparent;

	transform: translate(0, 0);
	overflow: hidden;
	-webkit-transition: all 0.6s cubic-bezier(0.55, 0, 0.1, 1);
	-moz-transition: all 0.6s cubic-bezier(0.55, 0, 0.1, 1);
	-o-transition: all 0.6s cubic-bezier(0.55, 0, 0.1, 1);
  transition: all 0.6s cubic-bezier(0.55, 0, 0.1, 1);
}

.blog-button:hover {
	box-shadow: 8px 8px 0px #333, -8px -8px 0px #333;
}

.blog-button:hover .btn-background-slide-bg {
	opacity: 1;
	transform: translate3d(0px, 0px, 0px);
}

.btn-background-slide-bg {
	width: 100%;
	height: 100%;
	position: absolute;
	background: transparent;
	top: 0;
	left: 0;
	transform: translate3d(0px, 90px, 0px);
	-webkit-transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
	-moz-transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
	-o-transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
	transition: all 0.3s cubic-bezier(0.55, 0, 0.1, 1);
	z-index: -1;
  background-color: #d2d2ba;
}

/* About Me */
.about-me {
  margin: 0px 0px 100px 0px;
  display: flex;
  flex-direction: row;
  gap: 50px;
}

.about-me-column {
  flex: 50%;
  min-width: 0;
}

.about-me-description {
  text-align: justify;
  font-size: 20px;
}

.in-line-logo img {
  height: 1em !important;
  width: auto !important;
  vertical-align: middle;
  display: inline-block;
  max-height: 100%;
  filter: grayscale(100%);
}


/* About Me Widget */
.about-me-widgets {
  position: relative;
  align-items: center;                    
  justify-content: center;
  border-radius: 8px;
  padding: 16px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.about-me-widgets:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.widget {
  display: none;
  text-align: center;
}

.widget-buttons {
  display: flex;
  justify-content: space-between;
}

.arrow-button {
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  user-select: none;
  margin: 0 1rem;
  transition: background-color 0.2s ease;
}

.arrow-button:hover {
  background-color: #f0f0f0;
  border-radius: 50%;
}

.widget-body {
  margin-top: 1rem;
  text-align: center;
}

.widget-title {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 8px;
}

.widget-all-text {
  font-size: 16px;
}

/* Skill Widget */
.widget.skills {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
}

.skills-carousel {
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.skills-track {
  display: inline-block;
  animation: marquee 15s linear infinite;
}

.skills-track svg{
  width: 64px;
  height: 64px;
  margin-right: 20px;
  filter: grayscale(100%);
}

.widget.skills:hover .skills-track svg,
.widget.skills:active .skills-track svg {
  filter: grayscale(0%);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Typing Animation */
.typing-container {
  text-align: center;
}

.input-cursor, .feature-text {
  font-family: 'Montserrat', serif;
  font-size: 45px;
}

.socials i {
  font-size: 27px;
  margin-right: 7px;
}

.socials {
  text-align: center;
}

.input-cursor {
  animation: blink .6s linear infinite alternate;
}

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

/* Work Experience */
.work-experience {
  margin-top: 0px;
}

.section-title {
  font-weight: 600;
  font-size: 32px;
  margin-bottom: 20px;
}

.all-work-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding: 20px;
  margin: 0 auto 30px auto;
}

.work-card {
  flex: 1 1 calc(33.333% - 40px); /* 40px = parent div gap(all-work-cards) */
  box-sizing: border-box;
  padding: 20px;
  max-width: calc(33.333% - 20px); /* 20px = padding */
}

.work-card-image {
  width: 100%;
  aspect-ratio: 16/9; /* Or 4/3, or any ratio you want */
  border-radius: 5px 5px 0 0;
  filter: grayscale(100%);
  transition: filter 0.2s ease-in-out;
}

.work-title {
  font-weight: 600;
  font-size: 20px;
}

.work-description {
  text-align: justify;
  font-size: 16px;
}

.all-skills {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  font-size: 14px;
}

.all-skills .skill {
  padding: 5px;
  border: 1px solid;
  border-radius: 15px;
}

.front-end-skill,
.back-end-skill,
.data-science-skill {
  background-color: transparent;
  border-color: transparent;
}

.front-end-skill {
  background-color: #e8f0f0;
  border-color: #e8f0f0 !important;
}

.back-end-skill {
  background-color: #e8e8f0;
  border-color: #e8e8f0 !important;
}

.data-science-skill {
  background-color: #d2d2ba;
  border-color: #d2d2ba !important;
}

.developer-tools-skill {
  background-color: #ebebc0;
  border-color: #ebebc0 !important;
}

.database-skill {
  background-color: #d4f3d6;
  border-color: #d4f3d6 !important;
}

.work-card:hover
.work-card:active {
  transform: scale(1.05);
}

.work-card:hover .work-card-image,
.work-card:active .work-card-image {
  filter: grayscale(0%);
}

/* Project Section */
.project {
  border-bottom: 1px solid #2f2f2f;
  margin-bottom: 20px;
}

.project:last-child {
  border-bottom: none;
}

.project-header {
  padding: 0px 10px 0px 10px;
  display: flex;
  justify-content: space-between;
}

.project-title {
  font-size: 20px;
  font-weight: 600;
}

.project-description {
  padding: 0px 10px 0px 10px;
  font-size: 16px;
}

.project-view-more {
  text-align: right;
  margin-right: 10px;
  font-size: 14px;
}

/* Footer */
.footer {
  border-top: 1px solid #2f2f2f;
  display: flex;
  margin-top: 80px;
  margin-bottom: 50px;
}

.footer-contact {
  border: 1px solid #2f2f2f;
}

.left-footer, 
.right-footer {
  width: 50%;
  display: flex; 
  flex-direction: column; 
  justify-content: center;
  align-items: center;
  height: 100px;
}

.footer-title {
  font-weight: 550;
  font-size: 25px;
}

.footer-title, 
.footer-contact {
  margin: 20px;
}

.btn-border-to-line{
	transition-property: all;
	transition-duration: .6s;
	transition-timing-function: ease;
}
.footer-contact-button {
	cursor:pointer;
	font-size:16px;
	width: 120px;
	position: relative;
  padding: 10px 10px 0px 10px;
	text-decoration: none;
	transition: all .6s ease-in;
	background: transparent;
	outline: none;
	border: 0;
  color: #333;
}
.footer-contact-button:hover {
	font-weight:550;
}
.footer-contact-button svg {
	height: 40px;
	left: 0;
	position: absolute;
	top: 0;
	width: 100%;
}
.footer-contact-button rect {
	fill: none;
	stroke-width: 4;
	stroke-dasharray: 412, 0;
	transition: all 0.5s linear;
  stroke: #333;
}
.footer-contact-button:hover rect {
	stroke-width: 5;
	stroke-dasharray: 23, 365;
	stroke-dashoffset: 58;
	transition: all 1.9s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Blog Post */
.newspaper-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 80px;
  text-transform: uppercase;
  display: inline-block;
  line-height: 72px;
  margin-bottom: 20px;
  text-align: center;
  width: 100%;
}

.newspaper-subhead {
  text-transform: uppercase;
  border-bottom: 2px solid #2f2f2f;
  border-top: 2px solid #2f2f2f;
  padding: 12px 0 12px 0;
  text-align: center;
}

.newspaper-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 30px 2% 0 2%;
  padding: 20px;
  gap: 20px;
  align-items: start;
}

.newspaper-column {
  font-size: 14px;
  line-height: 20px;
  padding: 0 20px 0 20px;
  margin-bottom: 50px;
  box-sizing: border-box;
}

.newspaper-column + .newspaper-column {
  border-left: 1px solid #2f2f2f;
}

.article-head{
  text-align: center;
  position: relative;
}

.article-title {
  font-weight: 400;
  font-style: italic;
  font-size: 36px;
  padding: 10px 0 10px 0;
  text-align: center;
  line-height: normal;
  font-family: 'Playfair Display', serif;
  display: block;
  margin: 0 auto;
}

.article-subhead {
  font-weight: 700;
  font-size: 12px;
  padding: 10px 0px 10px 0px;
  text-align: center;
  position: relative;
  border-top: 1px solid #2f2f2f;
  border-bottom: 1px solid #2f2f2f;
  padding-top: 7px;
  padding-bottom: 7px;
}

.media {
  -webkit-filter: sepia(80%) contrast(1) opacity(0.8);
  filter: sepia(80%) grayscale(1) contrast(1) opacity(0.8);
  mix-blend-mode: multiply;
  width: 100%;
}

.article-view-more {
  margin-top: 6px;
}

.pagination {
  margin: 25px 0px 25px 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

/* Blog Detail */
.blog-title {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  font-weight: 600;
  text-align: center;
}

.blog-post {
  font-size: 20px;
  white-space: pre-wrap;
}

.blog-post {
  h2 {
    font-size: 32px;
    font-weight: 550;
    padding-top: 10px;
  }

  h3 {
    font-size: 24px;
    font-weight: 500;
    padding-top: 10px;
  }

  ol {
    margin-left: 30px;
    margin-top: -5px;
    margin-bottom: -20px;
  }

  ul {
    margin-left: 30px;
    margin-top: -5px;
    margin-bottom: -20px;
  }

  b {
    font-weight: 600;
  }

  strong {
    font-weight: 600;
  }
}

.blog-figure {
  margin: auto;
}

.blog-image {
  display: block;
  margin: 0px auto 0px auto;
  width: 100%;
  height: 100%;
}

.blog-image-caption {
  font-style: italic;
  padding: 4px;
  text-align: center;
  font-size: 16px;
}

/* Contact Me */
.contact-me {
  display: flex;
  flex-direction: row;
  gap: 50px;
  min-height: 60vh;
  align-items: center;
}

.contact-me-column {
  flex: 50%;
  min-width: 0;
}

.contact-me-title {
  text-align: center;
  font-size: 40px;
  font-weight: 500;
  margin: 0px 50px 0px 0px;
}

.contact-me-form {
  width: 100%;
  background-color: #F0F0E8;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-col {
  gap: 20px;
  margin-bottom: 15px;
  padding-right: 10px;
}

.form-row {
  margin-top: 15px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-input-email,
.form-input-full-name {
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  margin-right: 40px;
  background-color: #F0F0E8;
}

.form-input-message {
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 16px;
  background-color: #F0F0E8;
}

/* Form Submit Button */
.contact-form-submit-button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 16px 36px;
  border: 4px solid;
  border-color: transparent;
  font-size: 16px;
  background-color: ;
  border-radius: 100px;
  font-weight: 600;
  color: #1f387e;
  box-shadow: 0 0 0 2px #ffffff;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-form-submit-button i {
  position: absolute;
  width: 24px;
  fill: #1f387e;
  z-index: 9;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-form-submit-button .arr-1 {
  right: 16px;
}

.contact-form-submit-button .arr-2 {
  left: -25%;
}

.contact-form-submit-button .circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: #e8e8f0;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-form-submit-button .text {
  position: relative;
  z-index: 1;
  transform: translateX(-12px);
  transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-form-submit-button:hover {
  box-shadow: 0 0 0 12px transparent;
  color: #212121;
  border-radius: 12px;
}

.contact-form-submit-button:hover .arr-1 {
  right: -25%;
}

.contact-form-submit-button:hover .arr-2 {
  left: 16px;
}

.contact-form-submit-button:hover .text {
  transform: translateX(12px);
}

.contact-form-submit-button:hover i {
  fill: #1f387e;
}

.contact-form-submit-button:active {
  scale: 0.95;
  box-shadow: 0 0 0 4px greenyellow;
}

.contact-form-submit-button:hover .circle {
  width: 220px;
  height: 220px;
  opacity: 1;
}


/* Mobile Changes */
@media (max-width: 768px) {
  /* Global Page */
  .container {
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 30px;
  }

  /* Nav Styling */
  .nav-elements {
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    right: 20px;
    top: 60px;
    padding: 10px;
    border-radius: 5px;
    display: none;
  }

  .nav-elements.show {
    display: flex;
  }

  .nav-icon {
    display: block;
  }

  /* About Me */
  .about-me {
    margin-top: 80px;
    flex-direction: column;
  }

  .about-me-column {
    flex: 100%;
    margin-bottom: 20px;
    max-width: 100%;
  }

  .typing-container {
	  min-height: 150px;
	}

  .skills-track svg{
    filter: grayscale(0%);
  }

  /* Work Experience */
  .work-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .work-card-image {
    filter: None;
    transition: None;
  }

  /* Footer */
  .footer {
    flex-direction: column;
    align-items: center;
  }
  .left-footer,
  .right-footer {
    flex: 1 1 100%;
    width: 100%;
    margin-bottom: 30px;
  }

  /* Contact Me */
  .contact-me {
    margin: 80px 0px 80px 0px;
    flex-direction: column;
  }

  .contact-me-title {
    width: 100%;
    margin: 15px 0px 30px 0px;
  }

  .form-col {
    flex-direction: column;
  }

  .form-row {
    flex: 100%;
    margin-bottom: 20px;
    max-width: 100%;
  }
  
  /* All Blog Page */
  .newspaper-articles {
    grid-template-columns: 1fr;
    margin: 0;
    padding: 10px;
    gap: 15px;
  }

  .newspaper-column {
    border-right: none;
    width: 100%;
    padding: 0;
    margin-bottom: 20px;
  }

  .media {
    width: 100%;
    height: 100%;
  }

  .newspaper-column + .newspaper-column {
    border-left: 0px;
  }

  /* Blog Specific */
  .blog-post {
    ol {
      margin-left: 5px;
    }

    ul {
      margin-left: 5px;
    }
  }
}

@media (min-width: 769px) {
  .landing-page-max-height {
    height: 100vh;
    display: flex;
    flex-direction: column; 
  }

  .navbar {
    display: flex;
    align-items: start; 
  }

  .about-me {
    flex: 100%;
    display: flex; 
    justify-content: center; 
    align-items: center; 
  }
}

/* project_files.css */
.project-file-container {
    margin: 2rem 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    background: #F0F0E8;
}

.file-title {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    color: #333;
}

.file-caption {
    margin-top: 0.5rem;
    font-style: italic;
    color: #666;
}

/* PDF Viewer */
.pdf-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pdf-canvas {
    max-width: 100%;
    border: 1px solid #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pdf-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.5rem;
    background: #F0F0E8;
    border-radius: 4px;
}

.pdf-controls button,
.pdf-controls a {
    background: #F0F0E8;
    color: #555;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1rem;
}

.pdf-controls button:hover,
.pdf-controls a:hover {
    background: #777;
}

.pdf-page-info {
    color: #555;
    padding: 0 1rem;
}

/* PPTX Container */
.pptx-notice {
    text-align: center;
    padding: 2rem;
}

.btn-download {
    display: inline-block;
    background: #0066cc;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 1rem;
}

.btn-download:hover {
    background: #0055aa;
}