/* ----------------------------------------------- */
/* BASIC SETUP */
/* ----------------------------------------------- */

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

html,
body {
    background-color: #fff;
    color: #555;
    font-family: 'Lato', 'Helvetica', sans-serif;
    font-weight: 300;
    font-size: 20px;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

.section-about,
.section-mathematical-background,
.section-publications {
    background-color: #f4f4f4;
}

/* ----------------------------------------------- */
/* REUSABLE COMPONENTS */
/* ----------------------------------------------- */

.row {
    max-width: 1290px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

/* ----- HEADINGS ----- */

h1,
h2,
h3 {
    font-weight: 400;
    text-transform: uppercase;
}

h1 {
    margin-top: 0;
    margin-bottom: 20px;
    color: rgb(255, 255, 255);
    font-size: 240%;
    word-spacing: 4px;
    letter-spacing: 1px;
}

h2 {
    font-size: 180%;
    word-spacing: 2px;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

h3 {
    font-size: 110%;
    margin-bottom: 15px;
}

h2:after {
    display: block;
    height: 2px;
    background-color: #0ea78d;
    content: " ";
    width: 200px;
    margin: 0 auto;
    margin-top: 30px;
}

/* ----- PARAGRAPHS ----- */

.long-copy {
    line-height: 145%;
    width: 80%;
    margin-left: 10%;
    text-align: center;
}

.box p {
    font-size: 90%;
    line-height: 145%;
}

/* ----------------------------------------------- */
/* HEADER */
/* ----------------------------------------------- */

header {
    background-image: -webkit-linear-gradient(#00332a71, rgba(0, 0, 0)), url(img/hero.jpg);
    background-image: linear-gradient(#00332a71, rgba(0, 0, 0)), url(img/hero.jpg);
    background-size: cover;
    background-position: center;
    height: 35vh; /* Keep the reduced height */
    position: relative; /* Ensure the header is a relative container */
    background-attachment: fixed;
}

.hero-text-box {
    position: absolute; /* Keep it positioned relative to the header */
    width: 100%; /* Ensure responsiveness */
    top: 80%; /* Align it vertically */
    left: 20%; /* Align it horizontally */
    transform: translate(-50%, -50%); /* Center it perfectly */
    text-align: center; /* Center the text */
}

/* ----------------------------------------------- */
/* NAVIGATION */
/* ----------------------------------------------- */

/* Main navigation */

.main-nav {
    float: right;
    list-style: none;
    margin-top: 55px;
}

.main-nav li {
    display: inline-block;
    margin-left: 40px;
}

.main-nav li a:link,
.main-nav li a:visited {
    padding: 8px 0;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 90%;
    border-bottom: 2px solid transparent;
    -webkit-transition: border-bottom 0.2s;
    transition: border-bottom 0.2s;
}

.main-nav li a:hover,
.main-nav li a:active {
    border-bottom: 1px solid #fff;
}

.main-nav li:last-child {
    margin-right: 40px; /* Adds space to the right of the last item */
}


/* Mobile navigation */

.mobile-nav-icon {
    float: right;
    margin-top: 30px;
    cursor: pointer;
    display: none;
}

.mobile-nav-icon i {
    font-size: 200%;
    color: #fff;
}


/* Sticky navigation */

.sticky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 2px #efefef;
    z-index: 9999;
}

.sticky .main-nav { margin-top: 18px; }

.sticky .main-nav li a:link,
.sticky .main-nav li a:visited {
    padding: 16px 0;
    color: #555;
}

/* ----------------------------------------------- */
/* ABOUT */
/* ----------------------------------------------- */



.imageAna {
    border-radius: 50%;
    display: block;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    height: 200px;
    width: 200px;
  }

/* ----------------------------------------------- */
/* CODING SKILLS */
/* ----------------------------------------------- */

.coding-showcase {
    display: flex;
    flex-wrap: wrap; /* Ensure wrapping into rows */
    justify-content: center; /* Center the icons horizontally */
    gap: 5px; /* Fine-tune spacing between items */
}

.coding-showcase li {
    display: inline-block;
    width: 9%; /* Reduce the width to make the items fit better */
    margin: 0px; /* Reduce the spacing between icons */
}

.coding-icon {
    width: 100%;
    margin: 5px;
    height: auto;
    background-color: #fff;
    overflow: hidden;
}

.coding-icon img {
    max-width: 60px; /* Adjust the size of the icons */
    opacity: 0.8; /* Keep some transparency for style */
    -webkit-transition: -webkit-transform 0.5s, opacity 0.5s;
    transition: transform 0.5s, opacity 0.5s;
}

.coding-icon img:hover {
    opacity: 1;
    -webkit-transform: scale(1.03);
    -ms-transform: scale(1.03);
    transform: scale(1.03);
}

/* ----------------------------------------------- */
/* PUBLICATIONS */
/* ----------------------------------------------- */

.paper-icon {
    width: 20px;
    margin-right: 10px;
    vertical-align: middle;
    margin-top: -5px;
}

.paper-icon:hover {
    animation: shake 0.5s;
    animation-iteration-count: infinite;
}

@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
  }

.download-link {
    text-decoration: none;
    color: #555
}

.download-link:hover {
    color: #00332a71; /* Change color on hover if desired */
}

/* ----------------------------------------------- */
/* CONTACT */
/* ----------------------------------------------- */
.coffee-button-container {
    display: flex; /* Use flexbox for alignment */
    justify-content: center; /* Center the button horizontally */
    align-items: center; /* Center the button vertically (if needed) */
    margin-top: 20px; /* Add some space above the button */
    padding: 10px 0; /* Add padding for proper spacing */
    transform: scale(0.8); /* Scale the button down */
}


/* ----------------------------------------------- */
/* FOOTER */
/* ----------------------------------------------- */

footer {
    background-color: #333;
    padding: 50px;
    font-size: 80%;
}

.footer-nav {
    list-style: none;
    float: left;
}

.social-links {
    list-style: none;
    text-align: center;
}

.footer-nav li,
.social-links li {
    display: inline-block;
    margin-right: 20px;
}

.footer-nav li:last-child,
.social-links li:last-child {
    margin-right: 0;
}

.footer-nav li a:link,
.footer-nav li a:visited, 
.social-links li a:link,
.social-links li a:visited {
    text-decoration: none;
    border: 0;
    color: #888;
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.footer-nav li a:hover,
.footer-nav li a:active {
    color: #ddd;
}

.social-links li a:link,
.social-links li a:visited {
    font-size: 160%;
}

.ion-social-linkedin,
.ion-social-twitter,
.ion-social-github {
    -webkit-transition: color 0.2s;
    transition: color 0.2s;
}

.ion-social-linkedin:hover {
    color: #007bb5;
}

.ion-social-twitter:hover {
    color: #1da1f2;
}

.ion-social-github:hover {
    color: #ed6b00;
}


footer p {
    color: #888;
    text-align: center;
    margin-top: 20px;
}

