.logo {
	margin-bottom: 2.5rem;
}
.sidebar-nav {
	margin-top: 1.5rem;
}
footer {
	position: static !important;
	width: 100%;
	z-index: auto !important;
	display: block !important;
}
/* Center logo in sidebar */
.sidebar-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
}
/* .logo styles already defined above, removing duplicate and stray 'i' */
/* Simple responsive styles for portfolio-eksamen */
:root{
	--bg:#f7f7f9;
	--card:#ffffff;
	--accent:#2b7a78;
	--muted:#6b6b6b;
	--max-width:1100px;
}
*{box-sizing:border-box}
html, body { height: 100%; }
body{display:flex;flex-direction:column;min-height:100vh;font-family:"gelica", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; margin:0; color:#222; background:var(--bg); line-height:1.45; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;}
.container{max-width:var(--max-width);margin:0 auto;padding:2rem}
.header-inner{display:flex;align-items:center;justify-content:space-between}
.logo{margin:0;font-size:1.25rem;color:var(--accent)}
.logo .brand{display:inline-flex;align-items:center;gap:.5rem;text-decoration:none}
.logo-img{width:120px;height:120px;border-radius:50%;object-fit:cover;display:block;border:2px solid rgba(0,0,0,0.06);box-shadow:0 4px 12px rgba(11,22,18,0.06)}
.visually-hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}
.main-nav a{margin-left:1rem;color:#222;text-decoration:none;font-weight:600}
.main-nav a:hover{color:var(--accent)}

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  max-height: 100vh;
  padding: 0;
  border-bottom: none;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}
.hero-img {
  width: 100vw;
  height: 100vh;
  min-height: 600px;
  object-fit: cover;
  display: block;
  filter: brightness(0.92) blur(1px);
  object-position: center 20%;


}
  /* ...existing code... */
.hero .container {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.723);
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.595);
  max-width: 1000px;
    display: grid; gap: .6rem; max-width: 600px; margin-left: 6rem;
  margin: 20rem auto 0;
  min-height: 60px;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  font-weight: 700;
}
.hero-title {
  position: absolute;
  top: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1 !important;
  text-align: center !important;
  font-size: 2.2rem;
  font-weight: 700;
  color: #1a2a2a;
  letter-spacing: -1px;
  margin: 0 !important;
  margin-left: 0 !important;
  width: 90vw;
  max-width: 700px;
  white-space: normal;
  line-height: 1.2;
  padding: 0 1rem;
}
@media (max-width: 700px) {
  .hero-title {
    font-size: 1.3rem;
    top: 1.2rem;
    max-width: 98vw;
    white-space: normal;
    padding: 0 0.5rem;
  }
  .hero .container {
    max-width: 98vw;
    width: 98vw;
    min-height: 40px;
    margin-top: 8rem;
    padding: 0.5rem 0.3rem;
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }
}

.about{padding:2rem 0}
.about h3{margin-top:0}

.portfolio{padding:2rem 0}
.portfolio .grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem}
.card{background:var(--card);padding:1rem;border-radius:8px;box-shadow:0 2px 8px rgba(20,20,20,0.05);}
.card h4{margin:.5rem 0}
.thumb{height:140px;border-radius:6px;overflow:hidden}
.thumb img{width:100%;height:100%;object-fit:cover;display:block}

.contact{padding:2rem 0}
.contact-form{display:grid;gap:.6rem;max-width:600px}
.contact-form label{display:flex;flex-direction:column;font-size:.9rem}
.contact-form input,.contact-form textarea{padding:.5rem;border:1px solid #ddd;border-radius:6px}
.contact-form button{width:max-content}


/* Responsive */
@media (max-width:900px){
	.portfolio .grid{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:600px){
	.header-inner{flex-direction:row;gap:1rem}
	.main-nav{display:none}
	.portfolio .grid{grid-template-columns:1fr}
	.container{padding:1rem}
	.hero{padding:2.5rem 0}
}
@media (max-width: 700px) {
  .hero, .hero-bg, .hero-img {
    min-height: 320px;
    height: 100vh;
    max-height: 100vh;
    width: 100%;
  }
  .hero .container {
    padding: 1.2rem 0.7rem;
    max-width: 90vw;
  }
}

/* Sidebar layout */
.site-wrapper{display:flex;align-items:flex-start;flex:1;flex-wrap:wrap}
.site-footer{margin-top:0}
footer{width:100%!important;flex-basis:100%}
.sidebar{width:180px;background:var(--card);height:100vh;position:sticky;top:0;padding:2rem 0.5rem;border-right:1px solid #ffffff}
.sidebar .sidebar-nav{display:flex;flex-direction:column;gap:.6rem}
.sidebar a{color:#222;text-decoration:none;padding:.4rem .6rem;border-radius:6px}
.sidebar a:hover{background:#ffffff;color:var(--accent)}
.content{flex:1}

/* Mobile: hide sidebar by default and enable toggle */
.overlay{position:fixed;inset:0;background:rgba(0,0,0,0.4);opacity:0;visibility:hidden;transition:opacity .2s ease,visibility .2s;z-index:35}
@media (max-width:900px){
	.site-wrapper{position:relative}
	.sidebar{position:fixed;left:0;top:0;bottom:0;transform:translateX(-110%);transition:transform .25s ease;z-index:40;box-shadow:0 8px 24px rgba(20,20,20,0.12)}
	.sidebar.open{transform:translateX(0)}
	.overlay.open{opacity:1;visibility:visible}
}

/* Focus styles and accessibility */
.sidebar a:focus{outline:2px dashed rgba(43,122,120,0.6);outline-offset:3px}

.content { flex: 1; }
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}
.site-wrapper {
  max-width: 100vw;
  overflow-x: hidden;
}
.profile-img {
  width: 520px;
  height: 520px;
  border-radius: 24px;
  object-fit: cover;
  margin-top: 2rem;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  z-index: 100;
}
.site-wrapper {
  margin-left: 180px;
}
@media (max-width:900px){
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    z-index: 100;
    transform: translateX(-110%);
    transition: transform .25s ease;
  }
  .sidebar.open{transform:translateX(0)}
  .site-wrapper {
    margin-left: 0;
  }
}

.about-flex {
  display: flex;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  padding-left: 5rem;
}
.profile-img {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  margin-left: 3rem;
  margin-right: 0;
}
.about-text {
  flex: 1;
  max-width: 600px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #222;
  background: none;
  overflow: visible;
  font-size: 1.35rem;
  line-height: 1.7;
  z-index: 1;
  margin-left: 0;
}
.about-text h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #473721;
  margin-bottom: 1.2rem;
}
.about-text p {
  font-size: 1.35rem;
  line-height: 1.7;
  color: #473721;
}
@media (max-width: 900px) {
  .about-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding-left: 2rem;
  }
  .profile-img {
    width: 90vw;
    max-width: 340px;
    margin-left: 0;
  }
  .about-text h1 {
    font-size: 2.1rem;
  }
  .about-text p {
    font-size: 1.1rem;
  }
}

/* Nudge the about section container further left without global impact */
#about.about.container {
  padding-left: 0;
  margin-left: 0;
}


.nav-dropdown {
  position: relative;
}
.dropdown-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4em;
}
.dropdown-arrow {
  font-size: 1.1em;
  margin-left: 0.2em;
}
.dropdown-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 1.2rem;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: flex;
}
.dropdown-menu a {
  color: #222;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 400;
  background: none;
  text-decoration: none;
  padding: 0;
  transition: color 0.2s;
}
.dropdown-menu a:hover {
  color: #555;
  font-weight: 700;
}

.result-img {
  width: 340px;
  height: 240px;
  object-fit: cover;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s cubic-bezier(.4,1.4,.6,1), box-shadow 0.2s;
  background: #fff;
}
.result-img:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 1;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin-bottom: 2rem;
}

.flow3-card {
  position: relative;
  cursor: pointer;
}
.flow3-card a.flow3-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  pointer-events: auto;
}
.flow3-card:hover a.flow3-link {
  opacity: 1;
}
.flow3-card:hover .flow3-overlay {
  background: none !important;
}
.flow3-card:hover .flow3-hover-text {
  display: none !important;
}
.flow3-card:hover h2,
.flow3-card:hover p,
.flow3-card:hover a {
  opacity: 1;
  pointer-events: auto;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 2rem;
}

/* Ensure footer sticks to bottom when page content is short */
footer {
  margin-top: auto !important;
}
.portfolio-card {
  background: #fff;
  border-radius: 2rem;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  overflow: hidden;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.portfolio-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  transform: translateY(-6px) scale(1.02);
  z-index: 2;
}
.portfolio-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 2rem 2rem 0 0;
  display: block;
}
.portfolio-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin: 1.2rem 1rem 0.5rem 1rem;
  text-align: center;
}
.portfolio-card p {
  font-size: 1.1rem;
  color: #222;
  margin: 0 1rem 1.2rem 1rem;
  text-align: center;
}
.portfolio-card a {
  margin: 0 auto 1.2rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .portfolio-card img {
    height: 180px;
  }
}

/* Mobile Responsiveness - Tablet and Below */
@media (max-width: 768px) {
  /* About section stacks vertically on mobile */
  .about-flex {
    flex-direction: column !important;
    align-items: center !important;
    gap: 1.5rem !important;
  }
  
  .profile-img {
    width: 180px !important;
    height: 180px !important;
  }
  
  .about-text {
    text-align: left !important;
    width: 100% !important;
  }
  
  /* Reduce left margins on sections for mobile */
  div[style*="margin-left: 6rem"],
  div[style*="margin-left: 12rem"] {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }
  
  /* Flexbox layouts stack on mobile */
  
  /* Tab section margins */
  section[style*="margin-left"] {
    margin-left: 1rem !important;
    margin-right: 1rem !important;
  }
  
  /* Contact form responsive */
  .contact-form label {
    display: block;
    margin-bottom: 1rem;
  }
}

/* Mobile - Small phones (max-width 480px) */
@media (max-width: 480px) {
  /* Hero title smaller on very small screens */
  .hero-title {
    margin-left: 0.5rem !important;
    font-size: 1.25rem !important;
  }
  
  /* Reduce padding and margins */
  body {
    padding: 0;
  }
  
  .container {
    padding: 1rem;
  }
  
  /* Stack tab buttons vertically on tiny screens */
  div[style*="display: flex"][style*="gap"] {
    flex-direction: column !important;
    align-items: stretch !important;
  }
  
  button[style*="min-width"] {
    width: 100% !important;
    min-width: auto !important;
  }
  
  /* Reduce font sizes further */
  h1, h2, h3 {
    font-size: clamp(1rem, 4vw, 1.5rem) !important;
  }
  
  /* Two-column sections go single column */
  div[style*="display: flex"][style*="gap: 2rem"] {
    flex-direction: column !important;
  }
}

/* Burger Menu - Mobile Navigation */
.nav-toggle {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  background: #473721;
  border: none;
  padding: 0.8rem;
  border-radius: 0.5rem;
  cursor: pointer;
  gap: 0.4rem;
  width: auto;
  height: auto;
  align-items: center;
  justify-content: center;
}

.hamburger {
  width: 24px;
  height: 3px;
  background: #f1e9e1;
  border-radius: 2px;
  transition: all 0.3s ease;
  display: block;
}

/* Show burger menu on mobile */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    flex-direction: column;
  }
  
  .sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #f1e9e1;
    overflow-y: auto;
    z-index: 999;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  }
  
  .sidebar.open {
    left: 0;
  }
  
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }
  
  .overlay.open {
    opacity: 1;
    visibility: visible;
  }
  
  .sidebar-nav a,
  .sidebar-nav .dropdown-toggle {
    display: block;
    padding: 1rem 1.5rem;
    color: #473721;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(71,55,33,0.1);
    transition: background 0.2s ease;
  }
  
  .sidebar-nav a:hover,
  .sidebar-nav .dropdown-toggle:hover {
    background: rgba(71,55,33,0.1);
  }
  
  .dropdown-menu {
    display: none;
    background: rgba(71,55,33,0.05);
  }
  
  .dropdown-menu.open {
    display: block;
  }
  
  .dropdown-menu a {
    padding-left: 3rem;
    font-weight: 400;
  }
}

