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

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 140px;
}

section {
  min-height: 100vh;   
  padding: 100px 20px; 
  box-sizing: border-box;
}

.hero {
  min-height: auto; 
  padding: 0;       
}

body {
  background-color: #EBF1F1;
  font-family: Inter, sans-serif;
}

/* menú en la parte superior derecha */
.site-header {
  position: fixed;       
  top: 0;
  right: 0;
  width: 100%;
  background: #EBF1F1;      
  padding: 40px 40px;    
  z-index: 1000;
}

.nav-list {
  display: flex;             /* horizontal */
  justify-content: flex-end; 
  align-items: flex-start;
  gap: 57px;                 /* espacio entre los botones */
  list-style: none;
}

.nav-list a {
  display: inline-block;         
  padding: 10px 20px;            
  color: #010103;                   
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;            
  transition: all 0.3s ease;      /* transición fluida */
}

/* Hover effect */
.nav-list a:hover {
  color: #fff;                    /* hvit tekst */
  background-color: #3F4BEB;      /* blå bakgrunn (endre til ønsket blå) */
}

.hero {
  position: relative;   /* viktig! gjør at absolute-stickers posisjoneres innenfor hero */
  text-align: center;   /* sentrer horisontalt */
  margin-top: 134px;    /* avstand fra menyen */
}

.hero h1 {
  color: #010103;
  font-family: 'Playfair Display', serif;
  font-size: 180px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;     /* tvinger alt til å være på én linje */
}

.hero-text {
  width: 913px;                /* fra Figma */
  margin: 64px auto 0;         /* 64px avstand fra H1, auto = sentrert */
  color: #010103;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.sticker {
  position: absolute;
  display: block;
}

/* Sticker1 */
.sticker1 {
  width: 155px;
  height: 155px;
  top: 3%;
  left: 62%;
  transform-origin: center center;
  animation: spin 5s linear infinite;
}

/* Sticker2 */
.sticker2 {
  width: 207px;
  height: 106px;
  top: 42%;
  left: 78%;
}


@keyframes spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* h2 en Proyectos, Sobre mí y Contacto */
.projects h2,
.about h2,
.contact h2 {
  color: #010103;
  font-family: 'Playfair Display', serif;
  font-size: 81.308px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align: center;
  margin-bottom: 80px; /* mismo espaciado en todas las secciones */
}

/* Proyectos */
.projects {
  text-align: center;
  margin-top: 626px; /* avstand fra forrige seksjon */

}

.projects h2 {
  font-family: 'Playfair Display', serif;
  font-size: 81.308px;
  font-weight: 400;
  color: #000;
  margin-bottom: 50px; 
  
}

/* Grid de imagenes */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 577px); /* 2 columnas */
  column-gap: 75px;  /* horisontal avstand */
  row-gap: 75px;     /* vertikal avstand */
  justify-content: center; /* sentrerer grid-en horisontalt */
}

/* Cards */
.project-card {
  position: relative;   /* gjør overlay mulig */
  display: block;
  border-radius: 50px;
  overflow: hidden;     /* så overlay følger kantene */
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease; /* smooth zoom */ 
}

.project-card img {
  width: 577px;
  height: 577px;
  border-radius: 50px;
  object-fit: cover;
  display: block;
}

/* Overlay - hover */
.project-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: #3F4BEB; 
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Inter, sans-serif;
  font-size: 24px;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  transition: height 0.3s ease;
  overflow: hidden;
  text-transform: uppercase;
}

/* zoom */
.project-card:hover {
  transform: scale(1.05); /* 5% zoom */
}

.project-card .overlay-text {
  text-align: center; 
}

.project-card .overlay-text .project-title {
  font-size: 24px;
  font-family: Inter, sans-serif;
  text-transform: uppercase; 
  margin-bottom: 8px; 
}

.project-card .overlay-text .project-desc {
  font-size: 18px;
  font-family: Inter, sans-serif;
  text-transform: none; /* texto normal */
  margin: 0;
}

/* quando hovering */
.project-card:hover .overlay {
  height: 95px; /* høyde på tekstboksen som vises */
  border-radius: 5px;
}

/* Sobre mí */
.about {
  margin-top: 134px; 
  padding: 0 2rem;  
}

.about-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px; 
  margin: 0 auto;    
  gap: 2rem;         
}

.about-text p {
  width: 600px;                
  color: #010103;
  font-family: Inter, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-align: left;            
}

.about-image img {
  width: 577px;
  height: 577px;
  flex-shrink: 0;
  border-radius: 45px;
}

/* Contacto */
.contact-info {
  display: flex;
  flex-direction: column;   
  align-items: center;      
  gap: 20px;                
}

.contact-btn {
  display: inline-block;
  padding: 12px 30px;
  color: #000;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  border: 2px solid #3F4BEB; 
  transition: all 0.3s ease;
}

.contact-btn:hover {
  color: #fff;
  background-color: #3F4BEB;
}

.site-footer {
  text-align: center;
  padding: 40px 20px;
  background-color: #EBF1F1; 
  font-family: Inter, sans-serif;
  font-size: 14px;
  color: #555;
  margin-top: 80px; 
}

.site-footer a {
  color: #3F4BEB;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #000;
}
