@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap'); /* You can change this to another font */

#short{
    display: none;
}
:root{
    --header-height: 5rem ;
    --footer-height: 2rem;
    --primary-font: 'Monomakh', serif;
    --secondary-font: ;

}
body, html {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-anchor: none;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
}
html {
    overflow-x: hidden; /* Block horizontal scroll*/
}
/* ------------------ */
/* HERO IMAGE STYLING */
.hero-image-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;          /* Full width */
    height: 100%;         /* 67vh Half of the screen height */
    overflow: hidden;     /* Hide overflowed parts */
    z-index: -1;          /* Make sure it stays behind content */
}

.hero-image {
    width: 100%;          /* Full width */
    height: 100%;         /* Full height of the wrapper */
    object-fit: cover;    /* Ensure the image covers the area without stretching */
    object-position: center; /* Center the image within the container */
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0); /* Start with no overlay */
    transition: background-color 0.3s ease;  /* Smooth transition */
    pointer-events: none;  /* Prevent overlay from interfering with other interactions */
}

.index-content {
    height:100vh;
    position: relative;
    z-index: 1;
    padding-top: 67vh; /* Ensure content starts below the image */
}


/* ------------------ */

.content{
    position: relative;
}

.intro-section {
    background-color: #ffffff;
    padding: 1rem;
    padding-top: 0;
    height: 100vh;
    text-align: center;
    height: calc(33vh - var(--header-height) - 2rem);
    overflow: hidden;
}
.whitespace{
    height: var(--header-height);
    background-color: white;
}
/*-----------------*/
/*HEADER*/
header {
    background: rgba(92, 92, 92, 1);
    z-index: 10;
    color: white;
    position: sticky;
    top: 0;
}

.index header {
    background: rgba(51, 51, 51, 0.8);
}

header h1 {
    margin: 0;
}

nav {
    display: flex; /* Flexbox to arrange left and right items */
    justify-content: space-between; /* Space between left and right items */
    align-items: center; /* Vertically center the items */
    height: var(--header-height);
    padding: 10px 20px; /* Adjust spacing around navbar */
}

/* Left Section: Home, About, Contact */
.nav-left {
    display: flex; /* Make links appear in a row */
    align-items: center; /* Vertically center the links */
}

.nav-left a {
    text-decoration: none;
    color: #ffffff; /* Ensure color from existing styles applies */
    font-size: 1rem;
    font-weight: bold;
    margin-right: 20px; /* Space between links */
}

.nav-left a:hover {
    color: #0077b5; /* LinkedIn blue hover effect */
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}
nav ul li a{
    font-family: var(--primary-font);  /* Apply primary font to the entire list */
    color: #fff; 
    text-decoration: none; /* Remove underlines from links */
    font-size: 1rem; /* Adjust font size if needed */
    font-weight: 400; /* Optional: You can make the font regular or bold */
    transition: color 0.3s ease; /* Smooth color change on hover */
}

/* ------------------ */
/* FOOTER */
footer {
    background: #333;
    color: white;
    padding: 1rem 0;
    height: var(--footer-height);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pgp-key-link {
    background-color: #ffffff;
    text-align: center;
    padding: 1.5rem 1rem;
}

.pgp-key-link a {
    color: #0077b5;
    font-weight: 600;
    text-decoration: none;
}

.pgp-key-link a:hover,
.pgp-key-link a:focus {
    text-decoration: underline;
}

/* ------------------ */


main {
    padding: 2rem;
    flex-grow: 1;
    z-index: 1;
    overflow-wrap: break-word;
    word-break: break-word; /* fallback for older stuff */
    max-width: 100%;
}

.project-page main {
    padding: 0;
    z-index: 1;
}
/* ------------------ */


/* Right Section: LinkedIn Icon and Contact Me Button */
.nav-right {
    display: flex; /* Flexbox for the icon and button side by side */
    align-items: center; /* Vertically align items */
}

/* Contact Me Button */
.contact-me-button {
    background-color: #0077b5; /* LinkedIn-like blue background */
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 1rem;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.2s;
    margin-left: 10px; /* Space between button and icon */
    text-align: center;
    scroll-behavior: smooth;
}

.contact-me-button:hover {
    background-color: #005f88;
    transform: scale(1.1);
}

.linkedin-icon {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    margin-left: 10px;
}

.linkedin-icon:hover {
    color: #0077b5;
}
.github-icon {
    color: #fff;
    font-size: 1.5rem;
    transition: color 0.3s ease;
    margin-left: 10px;
}

.github-icon:hover {
    color: #0077b5;
}

/* ------------------ */

/*HOMEPAGE TYPING TEXT ANIMATION*/
#typing-text {
    font-size: 24px;
    font-family: var(--primary-font);
    font-weight: 600;
    display: inline;
    white-space: nowrap;
    border-right: 3px solid rgba(51, 51, 51, 0.8); /* Simulate the cursor */
    padding-right: 5px;
    animation: blink-caret 0.75s step-end infinite;
    text-wrap: auto;
}
/* Blinking cursor animation */
@keyframes blink-caret {
    50% {
        border-color: transparent;
    }
}
#typing-text.no-blink {
    animation: none; /* Stop the blinking cursor */
    border-right: 3px solid transparent;
}

.hero-text {
    position: absolute;
    top: 15vh;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    z-index: 5;
    padding: 1rem;
    max-width: 90%;
  }
  


/* Container for the entire project section */
.project-feed {
    box-sizing: border-box;
    position: static;
    margin: 0;
    /*scroll-snap-type: y mandatory;*/
    overflow-y: scroll;
    height: calc(100vh - 11rem);

}
/* Individual project blocks */
.project-card {
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    margin: 10vh auto; /* Gives space to see the next/previous card */
    padding: 2rem;
    width: 80%;
    max-width: 900px;
    /*scroll-snap-align: center;*/
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: scale(1.02);
}

.project-card img {
    max-width: 100%;
    border-radius: 12px;
    margin-top: 1rem;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ------------------ */
/* ARTICLE*/
.article-layout {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 2rem;
    padding: 2rem;
    flex-wrap: wrap; /* Ensures responsive wrapping on small screens */
    max-width: 100%;
}

.article-text {
    flex: 1 1 50%;
    max-width: 100%;
}

.article-image {
    flex: 1 1 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}
/* ------------------ */

.fullpage-section {
    overflow-anchor: none;
    height: calc(100vh - var(--header-height) - var(--footer-height) - 2rem);
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white; /* or transparent depending on your theme */
  }

  /* FORM CSS */

  /* === Base Font & Layout === */
.contact-form-container {
    background-color: #ffffff; /* light grey background */
    color: #333;
    padding: 2rem;
    /*font-family: 'Roboto', sans-serif;*/
    max-width: 800px;
    margin: 0 auto;
    border-radius: 10px;
  }
  
  .contact-form-container h2 {
    text-align: center;
    font-size: 2.5rem;
    color: #003366; /* deep navy blue */
    margin: 0;
  }
  
  .contact-form-container p {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  #message {
    background-color: #f8f9fa;
    resize: none;
    overflow: auto;

  }
  
  .contact-form-container input,
  .contact-form-container textarea,
  .contact-form-container select {
    font-family: inherit;
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-bottom: 2px solid #ccc;
    background: white;
    color: #333;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: border-color 0.3s;
  }

  
  .contact-form-container input:focus,
  .contact-form-container textarea:focus,
  .contact-form-container select:focus {
    outline: none;
    border-color: #0077b5; /* LinkedIn blue */
  }

  
  /* === Form Layout === */
  .form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 0 -1rem;
  }
  
  .form-row > div {
    flex: 1;
    min-width: 250px;
    padding: 0 1rem;
  }
  
  /* === Submit Button === */
  .contact-form-container button {
    background-color: #0077b5; /* LinkedIn blue */
    color: white;
    font-weight: bold;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .contact-form-container button:hover {
    background-color: #005f88;
  }
  
  /*HOMEPAGE INTRO PARAGRAPH*/
  .intro-centered {
    display: flex;
    position: relative;
    height: calc(33vh - var(--header-height) - 2rem);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    text-align: center;
  }
  
  .intro-centered p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #666;
  }
/*Limit intro text from taking up full wide screen*/
  @media(min-width:1000px){
    .intro-centered p {
        max-width: 80vw;
    }
  }

  @media(max-width:800px) and (max-height:630px){
    .contact-form-container h2 {
        text-align: center;
        font-size: calc(100vw/20);
        color: #003366; /* deep navy blue */
        margin-bottom: 0;
      }
    .contact-form-container p {
        display: none;
      }
    .contact-form-container input,
    .contact-form-container textarea,
    .contact-form-container select {
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
    .form-row{
        gap: 0;
    }
  }

  @media(max-height:685px) and (max-width:500px){
    .intro-centered p{
        font-size: calc(100vw/30);
    }
  }


  @media(max-width:466px){
    .intro-centered p{
        font-size: calc(100vw/30);
    }
  }
  @media(max-height:450px){
    .contact-form-container h2 {
        display: none;
    }.contact-form-container p {
        display: none;
      }
    .contact-form-container input,
    .contact-form-container textarea,
    .contact-form-container select {
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
    .form-row{
        gap: 0;
    }
    .intro-centered{
        display:none;
        font-size: 1.2rem;
    }
    #short{
        display: block;
    }
    .intro-centered p:not(#short) {
        display: none;
      }
  }

  /* WIPER FOR INTRO SECTION */
  .intro-centered .wiper-fake {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: white;
    z-index: 2; /* stays behind the navbar */
    pointer-events: none; /* optional: ensures it doesn’t block interactions */
  }


/*MATHJAX OVERFLOW AND NUMBERING CUSTOMIZATION*/
 /* Force math content into column 1 and scroll it */
 mjx-math[display="true"]{
    background: white;
    grid-column: 1 / 2 !important;
    max-width: 100%;
}

/* Force label into column 2, always visible. INCREASE FROM 20PX IF MORE THAN 99 EQs*/
mjx-labels {
  min-width: 20px !important;
  max-width: 20px !important;
  flex: none !important;
  background: white;
  grid-column: 2 / 3 !important;
  position: sticky !important;
  right: 0;
  padding-left: 1em;
}

mjx-mtable {
    display: grid !important;
    grid-template-columns: 1fr auto;/*!important;   1st column is flexible, 2nd is fixed */
    min-width: 0 !important;
}

mjx-mtable > *:nth-child(1) {
  justify-self: center !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  white-space: nowrap !important;
  max-width: 100%;
}

mjx-table{
    margin: 0.5em 0.5em !important;
    min-width: 0 !important;
}

mjx-labels,
mjx-labels mjx-itable,
mjx-labels mjx-mtr,
mjx-labels mjx-mtd {
  height: 100% !important;
}

mjx-labels mjx-mtd {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end; /* or center / flex-start as needed */
}


/* Prevent MathJax from inflating the full equation table width */
mjx-container[display="true"] {
  min-width: 0 !important;
}