:root {
  --c1: #466D86;
  --c2: #354550;
  --c3: #262626;
  --c4: #FEC909;
  --bg1: #C5D1D9;
  --bg2: #EFF3F6;
}

@font-face {
  font-family: 'dudler';
  src: url('./fonts/Dudler-trial-Regular.otf');
}

@font-face{
  font-family:'futura';
  src: url('./Fonts/Futura_PT/Futura PT_06.otf');
}

@font-face{
  font-family:'canela';
  src: url('Fonts/Canela_Trial/Canela-BoldItalic-Trial.otf');
}

@font-face{
  font-family:'helvetica';
  src: url('Fonts/Helvetica/HelveticaNeueMedium.otf');
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg1); /* main background */
  padding:0rem;
  margin:0;
}

a{
  text-decoration: none;
  color: inherit;
}

p {
  font-family: 'helvetica';
}

img {
  max-width: 100%;
  display: block;
}

/* Header Styles */
header {
  position: relative;
  display: flex;
  flex-direction: row;
  padding: none;
  background: var(--c2); 
  margin: 0px;
}

.header-frame{
  position: absolute;
  inset: 0;
  border-style: solid;
  border-color: var(--c3);
  border-width: 0px;
  box-sizing: border-box;
  z-index: 5;
  animation: bordergrowth 1s ease-in-out forwards; 
}

@keyframes bordergrowth {
  from {
    border-width: 0px;
  }
  to {
    border-width: 25px;
  }
}

.headerLWrap {
  position: relative;
  flex: 1;
  overflow-y: visible;
  padding: 10px;
}

.header-left {
  font-family: 'canela';
  position: absolute;
  top: -6rem;
  left: clamp(-9rem,-30vw,100px);
  font-size: 37rem;
  font-weight: bold;
  color: var(--c3);
  z-index: 1;
}

.header-center {
  /*font-family: 'canela';
  font-size: clamp(80px,15vw,150px);
  color: var(--c3);
  -webkit-text-stroke: 1px var(--c4);
  */
  height: 422px;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px 0px;
  box-sizing: border-box;
  z-index: 10;
  flex:1;
}

.header-center-imgwrap{
  padding-top: 50px;
  filter: blur(0px);
  animation: headerblur 1s ease-out forwards;
}

@keyframes headerblur {
  from {filter: blur(5px);}
  to {filter: blur(0px);}
}

.header-center-imgwrap img{
  max-width: none;
  height: auto;
  width: clamp(200px,50vw,900px);
  transform: translatey(0px);
  animation: movein 2s ease-out forwards;
}

@keyframes movein {
  from {transform: translatey(40px);}
  to {transform: translatey(0px);}
}

.arrow{
  display: flex;
  width: 10%;
  height: auto;
  padding: 20px;
  animation: arrow 1s ease-in-out infinite alternate;
}

@keyframes arrow {
  0% { transform: translateY(0px); }
  100% { transform: translateY(20px); }
}

.header-right {
  display: flex;
  flex-direction: column;
  gap: 5px;
  justify-content: flex-end;
  box-sizing: border-box;
  z-index: 10;
  flex: 1;
}

.header-buttons{
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  padding: 30px;
}

.header-right a{
  font-family: 'futura';
  font-size: 20px;
  background: none;
  padding: 0px;
  cursor: pointer;
  border: none;
  color: var(--bg1);
  text-align: end;
}

/* Home Button */

.home-btn {
  font-family: 'canela';
  font-size: 20px;
  color: var(--c3);
  position: sticky;
  top: 50px;
  text-decoration: none;
    border: 2px solid red;
}

/* Featured Works */

.featured-works {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px;
  padding-bottom: 0px;
  gap: 30px;
  background: linear-gradient(to bottom, var(--bg2),var(--bg1));
  z-index: 10;
}

.featured-grid {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  align-items: top;
}

.featured-grid-L, .featured-grid-R {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.featured-grid-L p{
  text-align: right;
}

.featured-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fi1, .fi3{
  align-items: flex-end;
}

.fi2{
  padding-top: clamp(20px, 20vw, 200px);
}

.featured-item img {
  width: clamp(100px,40vw,500px);
  height: auto;
  object-fit: cover;
}

.featured-item p{
  font-family: 'helvetica';
  color: var(--c1);
  font-size: 13px;
  line-height: 18px;
  margin: 0px;
  padding: none;
}

/* All Works Mega Section */
.all-works {
  display: flex;
  justify-content: center;
  align-items: start;
  padding: 70px;
  background: var(--bg1);
}

/* Sticky TOC */
.home{
  font-family: 'canela';
  font-size: 40px;
  color: var(--c3);
  text-decoration: none;
}

.toc {
  font-family:'futura';
  font-size: 18px;
  text-align: right;
  min-width: 130px;
  position: sticky;
  top: 0px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: transparent;
  z-index: 10;
  padding: 75px 30px 0px 0px;
}

/* Content of each section */
.works-content {

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  box-sizing: content-box;
}

.works-section h2 {
  font-family:"futura";
  font-weight: 600;
  font-size: 40px;
  margin: 0px;
  padding: 10px 0px;
  text-align: right;
  color: var(--c1)
}

.works-section{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.works-grid {
  display: flex;
  flex-direction:column;

  gap: 20px;
  width: clamp(200px,60vw,800px);
}

.aw-row{
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.works-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.works-item img {

  aspect-ratio: 1/1;
  object-fit: cover;
}

.works-item p{
  font-family: 'helvetica';
  color: var(--c1);
  font-size: 13px;
  line-height: 18px;
  margin: 0px;
  padding: none;
}

/* Footer */
footer {
  background: var(--c2);
  padding: 20px;
}

footer p {
  font-family: 'canela';
  font-size: 20px;
  color: var(--c4);
  text-align: center;
  letter-spacing: 1px;
}

/* Responsive adjustments */
@media(max-width: 600px){
  .header-buttons{
    padding:25px 25px;
    padding-left: 0px;
  }

  .header-right a{
    font-size:13px;
  }

  .featured-item p{
    font-size: 13px;
  }

  .featured-works {
    padding: 15px;
  }

  .all-works {
    padding: 15px;
  }

  .works-content {
    align-items: flex-end;
  }

  .works-section h2 {
    width: clamp(200px,60vw,800px);
  }
  .aw-row{
    flex-direction: column;
  }

  .works-grid {
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  }

  .home-btn{
    top:20px;
    left:20px;
  }

  .home{
    font-size: 30px;
  }

  .toc{
    font-size: 15px;
    padding:125px 15px 0px 0px;
    top:-100px;
    min-width: 110px;
  }
}