/*
 * Stylesheet for the recreated Toni Lekic Visuals website.
 *
 * This file defines the colours, typography and layout for the
 * homepage, projects and contact pages. The design draws on
 * the dark, cinematic aesthetic of the original site captured
 * on the Internet Archive while remaining lightweight and easy
 * to understand.  Sections are separated by comments to make
 * editing simpler.
 */

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

html, body {
  height: 100%;
}

body {
  /* Use a warm beige tone inspired by the mid‑2025 design instead of the earlier dark theme. */
  font-family: Arial, Helvetica, sans-serif;
  color: #333333;
  /* Slightly deeper beige to better match the archive screenshot */
  background-color: #c9c0a8;
  line-height: 1.5;
}

a {
  color: #00aaff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
header {
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Grey-blue header inspired by the 2025 archive */
  background-color: #b7c1d0;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  /* Use a fixed height and allow width to scale with the aspect ratio of the combined logo */
  height: 60px;
  width: auto;
}

/* The combined logo graphic already includes the wordmark, so no separate text styles are necessary. */

nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

nav a {
  color: #333333;
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

nav a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Hero section */
/*
 * Previously the design included a full‑screen hero slider.  In the
 * 2025 snapshot of the site the landing page is instead a simple list
 * of highlighted projects without a hero.  The .hero rules have been
 * removed to allow the index page to focus on the projects grid.
 */

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-primary {
  background-color: #4a7eb5;
  color: #ffffff;
}
.btn-primary:hover {
  background-color: #345b80;
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid #4a7eb5;
  color: #4a7eb5;
}
.btn-secondary:hover {
  background-color: rgba(74, 126, 181, 0.1);
}

/* Projects page */
.projects-header {
  padding-top: 6rem;
  padding-bottom: 2rem;
  background-color: #c5baa9;
  text-align: center;
  color: #333333;
}

.projects-header h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.category-nav button {
  background: none;
  border: none;
  color: #00aaff;
  font-weight: bold;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.category-nav button.active,
.category-nav button:hover {
  background-color: rgba(0, 170, 255, 0.2);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 0 2rem 2rem;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  /* Light card background to contrast gently with the beige page */
  background-color: #ffffff;
  cursor: pointer;
}

/* Two overlay icons in the top‑right of each card using ::before and ::after.
   Background images are small PNGs representing play and loop icons
   stored in the images folder.  Sizes and spacing reflect the
   proportions seen in the archived layout. */
.card::before,
.card::after {
  content: '';
  position: absolute;
  top: 0.5rem;
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 2;
}
.card::before {
  right: 0.5rem;
  background-image: url('../images/icon_play.png');
}
.card::after {
  right: 2.5rem;
  background-image: url('../images/icon_loop.png');
}

.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.card .card-title {
  padding: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: #333333;
  background-color: rgba(255, 255, 255, 0.8);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* Contact page */
.contact-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 8rem 2rem 4rem;
}

.contact-container h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.contact-details {
  margin-bottom: 2rem;
  font-size: 1rem;
}

.contact-details p {
  margin: 0.5rem 0;
}

.contact-details a {
  color: #00aaff;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  /* Light form fields to complement the beige palette */
  padding: 0.75rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  font-size: 1rem;
  color: #333333;
  background-color: #faf8f5;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaaaaa;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  width: fit-content;
  align-self: flex-start;
  padding: 0.75rem 1.5rem;
  background-color: #00cc66;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact-form button:hover {
  background-color: #00994d;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a img {
  width: 32px;
  height: 32px;
}

/* Footer */
footer {
  background-color: #b7c1d0;
  color: #333333;
  padding: 1rem 2rem;
  text-align: center;
}

/* Contact page layout and styling matching the 2025 archive */
.contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  color: #333333;
}

.contact-page h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.contact-info p {
  margin-bottom: 1rem;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem 0;
}

.contact-info ul li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-info ul li span.icon {
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

/* Social icons in the contact page */
.contact-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.contact-social a span {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Make the consent label smaller and grey */
.consent {
  font-size: 0.9rem;
  color: #555555;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}

/* Bright submit button */
.submit-btn {
  padding: 0.75rem 1.5rem;
  background-color: #76d60e;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #5cb107;
}

/* Responsive adjustments for the contact page */
@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Video embed wrapper for the home page */
.video-wrapper {
  position: relative;
  /* Constrain the width to better match the archived layout */
  max-width: 1000px;
  width: 70%;
  margin: 3rem auto;
  /* 16:9 aspect ratio */
  padding-top: 56.25%;
  overflow: hidden;
}

/* Section titles on the homepage and other pages */
.section-title {
  font-size: 2.4rem;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0 2rem 1.5rem;
  color: #000000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Social icons on the home page footer area */
.home-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0;
}

.home-social a span {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Make the header stack its content vertically on small screens */
  header {
    flex-direction: column;
    align-items: flex-start;
  }
  nav {
    margin-top: 0.5rem;
  }
  /* Adjust the width of the video wrapper */
  .video-wrapper {
    width: 90%;
    padding-top: 56.25%;
  }
  /* Make the project grid more flexible on narrow screens */
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    padding: 0 1rem 2rem;
  }
  /* Reduce margins for section titles on small screens */
  .section-title {
    margin: 0 1rem 1rem;
    font-size: 2rem;
  }
  /* Adjust social icons spacing */
  .home-social {
    margin: 2rem 0;
  }
}