@charset "utf-8";
/* CSS Document */

/* Colour scheme */
:root {
  --Powder:  #FBFEF9; /* Baby Powder */
  --Saffron: #F39237; /* Deep Saffron */
  --Tardis:  #003B6F; /* Tardis Blue */
  --Command: #0E79B2; /* Star Command Blue */
  --secondary: #f4b41a; /* warm yellow */
  --Antiflash: #f2f3f4;     /* Antiflash */
}

@font-face {
  font-family: Syne;
  src: url("/fonts/Syne-VariableFont_wght.woff");
}

@font-face {
  font-family: Lora;
  src: url("/fonts/Lora-VariableFont_wght.woff");
}

/* ===========================
   Base Reset & Global Styles
   =========================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Lora, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: var(--Powder);
}

/* ===========================
   Links & Focus Styles
   =========================== */

a {
  color: var(--Tardis);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

/* ===========================
   Skip Link & Visually Hidden
   =========================== */

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #000;
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* ===========================
   Header
   =========================== */

.site-header {
  padding: 1.5rem 1rem;
  background: linear-gradient(
    to bottom,
    var(--Saffron) 0%,
    var(--secondary) 100%
  );
  color: var(--Powder);
  text-align: center;
}

.site-header h1 {
  margin: 0;
  font-size: 1.8rem;
}

.site-header a {
  color: inherit;
  text-decoration: none;
}

/* ===========================
   Navigation
   =========================== */

.site-nav {
  background: var(--secondary);
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--Command);
  padding: 0.25rem 0.5rem;
}

.site-nav a:hover,
.site-nav a:focus {
  background: var(--Saffron);
  border-radius: 3px;
}

/* ===========================
   Layout Containers
   =========================== */

.content-section {
  max-width: 960px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.two-column {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

.column {
  flex: 1 1 280px;
}

/* ===========================
   Typography
   =========================== */

h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

h3 {
  font-size: 1.3rem;
}

h2,h3,h4,h5,h6 {
  color: var(--Saffron);
}

.quote {
  font-style: italic;
  border-left: 4px solid var(--Saffron);
  padding-left: 1rem;
  margin-bottom: 1.5rem;
}

/* ===========================
   Images
   =========================== */

img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* ===========================
   Project Carousels
   =========================== */

.project-carousel {
  position: relative;
  margin: 1.5rem 0 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 0.5rem;
  padding: 0.25rem;
  align-items: flex-start;
}

.carousel-track img {
  flex: 0 0 auto;
  border-radius: 4px;
  cursor: pointer;
}

.carousel-track:focus {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.carousel-btn {
  background: var(--Saffron);
  color: #fff;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 50%;
  line-height: 1;
}

.carousel-btn:hover,
.carousel-btn:focus-visible {
  background: var(--secondary);
}

/* ===========================
   Buttons
   =========================== */

.custom-btn,
.contact-form button {
  display: inline-block;
  background: var(--Saffron);
  color: var(--Powder);
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  border: none;
  text-decoration: none;
  margin-top: 0.5rem;
}

.custom-btn:hover,
.custom-btn:focus-visible,
.contact-form button:hover,
.contact-form button:focus-visible {
  background: var(--secondary);
}

/* ===========================
   Contact Form
   =========================== */

.contact-form {
  max-width: 600px;
  margin-top: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-form input[type="text"],
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  border-radius: 3px;
  border: 1px solid #ccc;
  font: inherit;
}

.contact-form input[type="text"]:focus-visible,
.contact-form textarea:focus-visible {
  border-color: #005bbb;
  outline: 2px solid #ffbf47;
  outline-offset: 2px;
}

/* Honeypot (hidden from users but visible to bots) */
.honeypot {
  position: absolute;
  left: -9999px;
}

/* ===========================
   Footer
   =========================== */

.site-footer {
  text-align: center;
  padding: 1.5rem 1rem;
  background: linear-gradient(
    to bottom,
    var(--secondary) 0%,
    var(--Saffron) 100%
  );
  color: var(--Powder);
  margin-top: 2rem;
}
/* ===========================
   Lightbox
   =========================== */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox.show {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #000;
  color: #fff;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0.25rem 0.6rem;
  border-radius: 50%;
}

/* ===========================
   Success Modal
   =========================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.modal-box {
  background: #fff;
  max-width: 420px;
  width: 90%;
  padding: 1.5rem;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
}

/* ===========================
   Skills Lists
   =========================== */

#skills ul {
  padding-left: 1.2rem;
  margin: 0.5rem 0 0;
}

/* ===========================
   Responsive Adjustments
   =========================== */

@media (max-width: 600px) {
  .site-nav ul {
    justify-content: flex-start;
  }

  .project-carousel {
    flex-direction: column;
    align-items: stretch;
  }

  .carousel-btn {
    align-self: center;
  }
}
