/**
 * Sketchy Escher Style - Global Overrides
 * Monospace, hand-drawn aesthetic with geometric accents
 */

/* ===== BACKGROUND CANVAS ===== */
canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* ===== TYPOGRAPHY ===== */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

body {
  font-family: 'Space Mono', 'Courier New', monospace !important;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Mono', 'Courier New', monospace !important;
  letter-spacing: 1px;
}

h1 {
  font-size: 2.2rem !important;
  text-transform: uppercase;
  letter-spacing: 4px;
  position: relative;
  display: inline-block;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    #222 0px,
    #222 8px,
    transparent 8px,
    transparent 12px
  );
}

h2 {
  font-size: 1.3rem !important;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: #333;
}

/* ===== DROPDOWN NAV ===== */
.dropdown-nav {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  font-family: 'Space Mono', monospace;
}

.menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  background: #fff;
  border: 2px solid #222;
  color: #222;
  cursor: pointer;
  transition: all 0.15s ease;
}

.menu-toggle:hover {
  background: #222;
  color: #fff;
}

.menu-toggle.active {
  background: #222;
  color: #fff;
}

.hamburger {
  width: 14px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: currentColor;
  left: 0;
}

.hamburger::before { top: -5px; }
.hamburger::after { bottom: -5px; }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 150px;
  background: #fff;
  border: 2px solid #222;
  box-shadow: 4px 4px 0 rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
}

.dropdown-menu.open {
  display: flex;
}

.dropdown-menu a {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #222;
  text-decoration: none;
  border-bottom: 1px dashed #ddd;
  transition: all 0.1s ease;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: #222;
  color: #fff;
}

/* Hide old header/menu */
#header, #menu {
  display: none !important;
}

/* ===== MAIN CONTENT ===== */
#main > .inner {
  position: relative;
}

#main > .inner > header h1 {
  margin-bottom: 1.5rem;
}

#main > .inner > header p {
  font-style: italic;
  color: #555;
  max-width: 600px;
}

/* ===== BUTTONS ===== */
.button, 
button,
input[type="submit"],
input[type="button"] {
  font-family: 'Space Mono', monospace !important;
  text-transform: uppercase !important;
  letter-spacing: 2px !important;
  border: 2px solid #222 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #222 !important;
  transition: all 0.2s ease !important;
  position: relative;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
  background: #222 !important;
  color: #fff !important;
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 #666 !important;
}

.button.primary,
input[type="submit"].primary {
  background: #222 !important;
  color: #fff !important;
}

.button.primary:hover,
input[type="submit"].primary:hover {
  background: #fff !important;
  color: #222 !important;
}

/* ===== FOOTER ===== */
/* ===== FOOTER ===== */
#footer {
  background: transparent !important;
  border-top: 1px dashed #ccc !important;
  text-align: center;
  padding: 1.5rem 1rem 1rem !important;
  margin-top: 3rem;
}

.footer-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.footer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #333;
  color: #333 !important;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.15s ease;
}

.footer-icon:hover {
  background: #222;
  color: #fff !important;
  transform: translateY(-2px);
}

#footer .copyright {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin: 0;
}

/* ===== FORM FIELDS ===== */
input[type="text"],
input[type="email"],
textarea {
  font-family: 'Space Mono', monospace !important;
  border: 2px solid #222 !important;
  border-radius: 0 !important;
  transition: all 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  box-shadow: 3px 3px 0 #ddd !important;
  outline: none !important;
}

/* ===== PROJECT PAGE HEADER ===== */
.project-header {
  display: block;
  margin-bottom: 2rem;
  text-align: center;
  padding-top: 2rem;
  max-width: calc(100% - 120px);
  margin-left: auto;
  margin-right: auto;
}

.project-header h1 {
  display: block;
  margin-bottom: 0.75rem;
}

.project-header .project-role {
  font-family: 'Space Mono', monospace !important;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666;
  background: #f0f0f0;
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid #ddd;
  margin: 0;
}

/* ===== GEOMETRIC DECORATIONS ===== */
.geometric-accent {
  position: fixed;
  pointer-events: none;
  z-index: -1;
  opacity: 0.03;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-left: 1px solid #ddd;
}

::-webkit-scrollbar-thumb {
  background: #222;
  border: 2px solid #f0f0f0;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

/* ===== SELECTION ===== */
::selection {
  background: #222;
  color: #fff;
}
