body {
    width: 100%;
    font-family: 'Jost', 'AnekBangla', 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 16px;
    margin: 0 auto;
    padding: 0;
    color: black;
    line-height: 1.6em;

    background-color: white;
    opacity: 1;
    /* background-image: radial-gradient(rgb(0, 0, 0, .5) .5px, white .5px);
    background-size: 5px 5px; */
}

@media (max-width: 800px) {
    body {
        line-height: 1.3em;
    }
}


/******************************* header styles ***************************/
header {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: black;
    color: white;
    padding-top: 2.5rem;
    padding-bottom: 3rem;
    text-align: left;
    font-size: larger;
}

.header-text {
    margin-left: 2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

#name-head {
    text-align: left;
    font-size: xxx-large;
    font-weight: bold;
    margin: .25em 0;
}

#profile-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 4px solid white;
    opacity: 1;
    background-size: cover;
    background-position: center;

    transition: .1s ease;
}

@media (max-width: 800px) {
    header {
        flex-direction: column;
        padding-bottom: 2em;
    }

    .header-text {
        margin: 0;
        align-items: center;
    }

    #name-head {
        font-size: xx-large;
        text-align: center;
    }

    #profile-image {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }
}


.work-img{
  width: 100%;
  border: 2px dashed black;
  box-sizing: border-box;
  overflow: hidden;
}

.work-img img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}


/****************************************************************************/



/********************* main menu *****************************/
.main-menu {
    width: 100%;
    background-color: yellow;

    position: sticky;
    position: -webkit-sticky;
    top: 0;
    margin-bottom: 3em;
    z-index: 50;

    display: flex;
    justify-content: center;
    align-items: end;
    height: 2.5em;
    /* affects sticking position of table header row. see table.css */

    /* box-shadow: 0 1px 5px rgb(0,0,0,.5); */

    transition: .1s;
}

.menu-last {
    height: 100%;
    margin-left: auto;
    /* Push the last element to the right */
    flex-grow: 1;
    /* Make the last element grow to take up available space */
    text-align: right;
    /* Align text to the right */

    background-image: repeating-linear-gradient(90deg,
            yellow 0,
            yellow 1.25em,
            black 1.25em,
            black 2.5em);
    transform: skew(45deg);
}

.menu-first {
    height: 100%;
    margin-right: auto;
    /* Push the first element to the left */
    flex-grow: 1;
    /* Make the first element grow to take up available space */
    text-align: left;
    /* Align text to the left */

    background-image: repeating-linear-gradient(270deg,
            yellow 0,
            yellow 1.25em,
            black 1.25em,
            black 2.5em);

    transform: skew(45deg);
}

.menu-middle {
    height: 100%;
    display: flex;
    align-items: end;
    justify-content: center;
    background-color: yellow;
    margin-right: 7px;
    margin-left: -7px;
}

.main-button {
    height: 100%;
    /* Match button height to menu height */
    padding: 0 .75em;
    /* Horizontal padding for spacing */
    text-align: center;
    font-weight: bold;
    font-size: x-large;
    background: linear-gradient(to bottom, black 50%, white 50%);
    background-size: 100% 200%;
    background-position: 0% 0%;
    color: white;

    border-top: 15px solid white;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transform: skew(45deg);
    transition: .1s ease-in;
}

@media (max-width: 800px) {
    .main-button {
        font-size: medium;
    }
}

.main-button.toggled {
    background-position: 0% -100%;
    color: black;
}

.main-button .button-text {
    display: inline-block;
    transform: skew(-45deg);
}

.menu-filler {
    height: 100%;
    width: .75em;
    background-color: yellow;
    margin-left: 7px;
    transform: skew(45deg);
    transform: .3s;
}

@media (max-width: 800px) {
    .menu-filler {
        width: 0;
    }
}

/*********************************************************/




/****************** sectioning **************************/

section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;

    width: 99%;
    max-width: 2500px;
    box-sizing: border-box;

    padding: 2rem;
}

@media (max-width: 800px) {
    section {
        padding: .5rem;
    }
}

.column {
    flex: 1 1 0;
    width: 100%;
    max-width: 1000px;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: justify;

    padding: 1rem;
    gap: 1rem;

    background-color: white;
    box-sizing: border-box;

    transition: .3s;
}


.striped-border {
    background-color: white;
    position: relative;
    /* box-shadow: 0 0 10px black; */
    padding: 2rem;
    margin: 1em;
}

.striped-border::before {
    content: "";
    position: absolute;
    top: -1rem;
    bottom: -1rem;
    left: -1rem;
    right: -1rem;
    z-index: -1;
    background: repeating-linear-gradient(45deg,
            /* Angle of the stripes */
            black,
            /* Start color */
            black .75em,
            /* Thickness of black stripe */
            white .75em,
            /* Start of white stripe */
            white 1.5em
            /* Thickness of white stripe */
        );
    /* box-shadow: 0 0 5px rgb(0,0,0,.5); */
}

@media (max-width: 800px) {
    .striped-border{
        padding: 1rem;
        margin: 0;
        gap: 0;
    }
}

h1 {
    display: none;
}

h2 {
    text-align: center;
    font-size: x-large;
    font-weight: bold;
}

h3 {
    display: flex;
    align-items: center;
    font-size: large;
    font-weight: bold;
    margin: .5em;
}

.winged {
    display: flex;
    align-items: center;
    text-align: center;
    /* Adjust text size as needed */
}

.winged::before,
.winged::after {
    content: "";
    flex: 1;
    /* Adjust how much space the lines take */
    border-bottom: 2px solid black;
    /* Line style */
    margin: 0 15px;
    /* Space between text and the line */
}

.winged::before {
    margin-left: 0;
    /* Left margin */
}

.winged::after {
    margin-right: 0;
    /* Right margin */
}

/******************************************************/









/*********************** my custom list styles ***********/
ul.my-list {
    list-style: none;
    /* Remove the default bullet */
    padding-left: .5em;
    /* Add some left padding */
}

/* Custom bullet using ::before pseudo-element */
ul.my-list li {
    position: relative;
    padding-left: 1em;
    padding-bottom: .2em;
}

/* Create a custom bullet using ::before */
ul.my-list li::before {
    content: "";
    position: absolute;
    top: 0.4em;
    left: -.15em;
    font-size: 1.25em;
    border: solid black;
    border-width: .15em .15em 0 0;
    padding: .15em;
    transform: rotate(45deg);
}

/******************** hyperlink *******************/
a {
    color: black;
    text-decoration: underline dotted;
}


/**************************************************/


.border-decor {
    /* box-shadow: 2px 2px 6px rgb(0,0,0,.2); */
    border: 2px dashed black;
}



/******************* fading in letters in the section header ******************/
.fadeinBanner {
    display: flex;
    gap: 0;
    /* Adjust spacing between letters */
    font-size: xx-large;
    margin-bottom: 0.95rem;
    /* Adjust font size as needed */
    font-weight: bold;
    transition: .3s;
}

.letter {
    opacity: 0;
    /* Initially hidden */
    animation: fadeIn 0s forwards;
    /* Trigger fade in animation */
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 800px) {
    .fadeinBanner {
        font-size: x-large;
    }
}

/*************************************************************************/



/************************** folding sections *****************************/
.folding-description {
    display: none;
    padding: 1em;
    transition: .3s;
}
/*************************************************************************/

/* Footer quote letter animation */
#footer-quote {
  min-height: 2.2em;          /* prevents footer height jump while animating */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;                     /* keep letters tight */
}

#footer-quote .quote-letter{
  opacity: 0;
  display: inline-block;
  animation: quoteFade 0.15s forwards;
}

@keyframes quoteFade {
  from { opacity: 0; transform: translateY(2px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce){
  #footer-quote .quote-letter{
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* Ensure the menu never causes horizontal scrolling */
.main-menu {
  width: 100%;
  overflow-x: clip;   /* prevents overflow caused by skewed elements */
}

/* Rightmost black cap (replaces inline style) */
.menu-cap{
  background-color: black;
  width: 21px;
  height: 100%;
}
