/* --- Reset & Base Styles --- */
* {
  box-sizing: border-box;
}

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;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

html {
  height: auto;
}

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;
}

a:focus {
  outline: 2px solid rgb(46, 168, 233);
}

body {
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: white;
  background-color: rgb(46, 50, 62);
  margin: 0 auto;
  min-height: 100vh;
}

img {
  margin: 0;
  padding: 0;
  display: block;
  width: 100%;
  height: auto;
}

.main {
  margin: 2rem auto;
  padding: 0;
  width: 90%;
}

/* --- Intro / Intentional Overlap Grid --- */
.intro-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(4, 1fr);
  grid-column-gap: 0px;
  grid-row-gap: 0px;
  margin-bottom: 3rem;
}

.intro-text {
  line-height: 1;
  font-weight: 800;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  color: rgba(255, 255, 255, 0.4);
  font-size: clamp(16px, 1rem + 2vw, 6rem);
  grid-area: 1 / 1 / 5 / 5;
  z-index: 10; /* Ensure text stays on top */
}

.intro-photo {
  width: 100%;
  grid-area: 2 / 2 / 6 / 6;
  z-index: 1;
  opacity: 0.6;
}

.intro-photo img {
  border-radius: 10px;
}

.into-photo-caption {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 100;
  line-height: 1.2;
  padding-top: 1rem;
  display: inline-block;
}

/* --- Header & Navigation --- */
.header-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 2rem;
}

.header-top a {
  text-decoration: none;
}

.site-title {
  margin: 0;
  font-size: 1.5rem;
}

.site-title a {
  color: white;
  text-decoration: none;
}

.contact-info {
  font-weight: 100;
  font-size: clamp(.7rem, 0.5rem + 0.5vw, 1rem);
  text-align: right;
  white-space: nowrap;
}

.contact-info a {
  text-decoration: none;
  color: grey;
  white-space: nowrap;
}

header.site-header {
  margin: 0 auto 2rem auto;
  padding: 0;
}

/* Hamburger UI Elements */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none; /* Desktop hidden */
  cursor: pointer;
  padding: 1rem 0;
}

.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  background: white;
  height: 1px;
  width: 1.6rem;
  position: relative;
  transition: all 0.3s;
}

.nav-toggle-label span::before,
.nav-toggle-label span::after {
  content: '';
  position: absolute;
}

.nav-toggle-label span::before { bottom: 6px; }
.nav-toggle-label span::after { top: 6px; }

.nav-toggle:checked ~ .nav-toggle-label span {
  background: transparent; /* Hide middle bar */
}

.nav-toggle:checked ~ .nav-toggle-label span::before {
  transform: rotate(45deg);
  bottom: 0;
}

.nav-toggle:checked ~ .nav-toggle-label span::after {
  transform: rotate(-45deg);
  top: 0;
}

/* Desktop Navigation */
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  line-height: 1.3;
}

.main-nav li {
  display: flex;
  align-items: center;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  font-weight: 100;
  font-size: clamp(.7rem, .7rem + .5vw, 2rem);
}

.main-nav a {
  color: grey;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a:hover {
  color: rgb(46, 168, 233);
}

.main-nav a.active {
  color: white;
}

/* Separator for desktop view */
.main-nav li:not(:last-child) a::after {
  content: "/";
  color: #fff;
  padding: 0 5px;
  display: inline-block;
}

/* --- Content & Projects --- */
h1 {
  font-size: 1rem;
  font-weight: 800;
  color: grey;
  margin: 0 0 2rem 0;
  text-transform: lowercase;
}

.content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  grid-gap: 2rem;
  margin: 0 auto;
}

.imagecontent {
  margin-bottom: 2rem;
}

.imagecontent img {
  border-radius: 10px;
}

.description {
  font-size: .7rem;
  margin: 1rem 0;
  letter-spacing: 1px;
  text-transform: capitalize;
}

video {
  height: auto;
  width: 100%;
}

/* --- Responsive Media Queries --- */

/* Mobile Navigation (Under 768px) */
@media (max-width: 768px) {

  .nav-toggle-label {
    display: block;
  }

  .main-nav ul {
    display: none; /* Collapsed */
    flex-direction: column;
    width: 100%;
    background: rgba(46, 50, 62, 0.98);
    padding: 1rem 0;
  }

  .nav-toggle:checked ~ ul {
    display: flex; /* Show when toggled */
  }

  .main-nav li {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Remove separators on mobile */
  .main-nav li:not(:last-child) a::after {
    content: none;
  }

  .header-top {
    flex-direction: column;
    text-align: left;
  }

  .contact-info {
    text-align: left;
    margin-top: 1rem;
  }
  
	header.site-header {
    margin-bottom: 1rem;
  }

  .nav-toggle-label {
    display: block;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(46, 50, 62, 0.98);
    padding: 1rem 0;
  }

  .nav-toggle:checked ~ ul {
    display: flex;
  }

  .main-nav li {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Remove separators on mobile */
  .main-nav li:not(:last-child) a::after {
    content: none;
  }

  .header-top {
    flex-direction: column;
    text-align: left;
  }

  .contact-info {
    text-align: left;
    margin-top: 1rem;
  }
}

/* Layout width adjustments for larger screens */
@media (min-width: 768px) {
  .main { width: 80%; }
  .intro-container {
  		grid-template-columns: repeat(5, 1fr);
		grid-template-rows: repeat(5, 1fr);
	}
	
	.intro-text {
  		grid-area: 2 / 1 / 4 / 5;
	}

	.intro-photo {
  		grid-area: 1 / 2 / 6 / 6;
	}

}

@media (min-width: 1200px) {
  .main { width: 70%; }
}


.mobile-mockup {
	width: 30%;
	height: auto;
  aspect-ratio: 3/6;
  border-radius: 20px;
  border: 8px solid black;
  background-image: ;
}