/* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}
body {
  line-height: 1;
}
ol,
ul {
  list-style: none;
}
blockquote,
q {
  quotes: none;
}
blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}
table {
  border-collapse: collapse;
  border-spacing: 0;
}
/* ======= Reset End ======= */

/* ======= My style css ======= */
:root {
  --fluid-typography-ratio: 0.5vw;
}

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

body {
  background-color: #eae8e8f6;
  color: rgb(190, 179, 179);
  padding: 60px 5% 0px 5%;
  margin: auto;
  max-width: 1200px;
  font-family: 'Roboto Slab', serif;
  font-size: calc(14px + var(--fluid-typography-ratio));
  line-height: 1.5;
}

h1,
h2,
h3,
h4 {
  color: #505050;
  margin-bottom: 0.5em;
}

h1 {
  font-size: calc(24px + 2 * var(--fluid-typography-ratio));
  font-weight: bold;
}

h2 {
  font-size: calc(20px + 1.5 * var(--fluid-typography-ratio));
}

h3 {
  font-size: calc(18px + var(--fluid-typography-ratio));
}

h4 {
  font-size: calc(16px + 0.5 * var(--fluid-typography-ratio));
}

p {
  color: #505050;
  margin-bottom: 0.5em;
  text-align: justify;
}

a {
  text-decoration: none;
  color: #505050;
  transition: color 0.3s ease;
}

a:hover {
  color: #f8790b;
}

h4 + p + p {
  font-size: calc(10px + 0.2 * var(--fluid-typography-ratio));
}

/* Header css */
.header {
  position: fixed;
  top: 0;
  left: 0;
  padding: 1.3rem 5%;
  width: 100%;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(50px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo img {
  position: relative;
  height: 15px;
}

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

.navbar a {
  font-size: calc(14px + 0.5 * var(--fluid-typography-ratio));
  color: #505050;
  text-decoration: none;
  margin-left: 2.5rem;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #f8790b;
}

/* Hamburger menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 101;
  position: relative;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: #505050;
  margin: 3px 0;
  transition: 0.4s;
}

/* Introduction css */
.flex-grid {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.flex-item {
  width: 48%;
  margin: 1% 0;
}

.intro {
  font-size: calc(32px + 3 * var(--fluid-typography-ratio));
  color: #505050;
}

.headings {
  font-size: calc(24px + 2 * var(--fluid-typography-ratio));
  text-align: center;
  margin-top: 30px;
  margin-bottom: 30px;
}

.container {
  flex: 1;
  padding: 25px;
  margin: 10px auto;
  backdrop-filter: blur(10px);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 6px 6px 10px -1px rgba(0, 0, 0, 0.15),
    -6px -6px 10px -1px rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
  transform: translateY(-5px);
  box-shadow: 8px 8px 15px -1px rgba(0, 0, 0, 0.2),
    -8px -8px 15px -1px rgba(255, 255, 255, 0.8);
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 3em;
}

.row .container {
  flex: 1;
  min-width: 250px;
}

li {
  list-style: disc;
  margin: 0 0 10px 20px;
  color: #505050;
}

footer {
  padding: 10px;
  font-size: calc(10px + 0.2 * var(--fluid-typography-ratio));
  margin-top: 20px;
}

.footer {
  border-top: 1px solid #ccc;
  padding: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
}

html {
  scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.profile_pic,
.intro,
.container {
  animation: fadeIn 1s ease-out;
}

/* ======== BREAKPOINTS ======= */
@media (max-width: 992px) {
  .header {
    padding: 1rem 5%;
  }

  .flex-item {
    width: 100%;
  }

  .navbar a {
    margin-left: 1.5rem;
  }
}

@media (max-width: 768px) {
  body {
    padding: 60px 3% 0px 3%;
  }

  .container {
    padding: 20px;
  }

  .row {
    flex-direction: column;
    gap: 1.5em;
  }

  .row .container {
    min-width: 100%;
  }
}

@media (max-width: 620px) {
  .header {
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
  }

  .navbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
  }

  .navbar.active {
    display: flex;
  }

  .navbar a {
    margin: 1rem 0;
    font-size: calc(18px + 0.5 * var(--fluid-typography-ratio));
  }

  .hamburger {
    display: flex;
    position: fixed;
    top: 1rem;
    right: 1rem;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

@media (max-width: 520px) {
  .profile_pic {
    display: none;
  }
}
