/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
  color: #222;
  font-size: 1em;
  line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
  resize: vertical;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
  --bg-color: #0a0a0a;
  --text-color: #f0f0f0;
  --accent-color: #a855f7;
  --secondary-accent: #d8b4fe;
  --card-bg: #1a1a1a;
  --nav-height: 80px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1, h2, h3 {
  font-family: 'Syne', sans-serif;
  text-transform: uppercase;
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Header & Nav */
header {
  height: var(--nav-height);
  padding: 0 5%;
  position: fixed;
  top: 0;
  width: 90%;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  height: 40px;
  background-color: white;
  padding: 5px;
  border-top-left-radius: 20px;
  border-bottom-right-radius: 20px;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  /*display: flex;*/
  /*align-items: center;*/
}

.logo img {
  max-height: 100%;
  width: auto;
  display: block;
}

.logo a:hover {
  opacity: 0.8;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul li a:hover {
  color: var(--accent-color);
}

/* Hero Section */
#hero-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 5% 60px;
}

#hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 5%;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
  position: relative;
  text-align: center;
}

#hero::before {
  content: "";
  position: absolute;
  top: 20%;
  right: 10%;
  width: 300px;
  height: 300px;
  background: var(--accent-color);
  filter: blur(150px);
  opacity: 0.15;
  border-radius: 50%;
  z-index: 0;
}

.hero-content {
  max-width: 800px;
  position: relative;
  z-index: 1;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1;
  font-weight: 800;
  margin-bottom: 2rem;
}

.accent {
  color: var(--accent-color);
  font-style: italic;
}

#hero p {
  font-size: 1.25rem;
  max-width: 500px;
  margin-bottom: 3rem;
  opacity: 0.8;
  margin-left: auto;
  margin-right: auto;
}

.hero-graphic {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.hero-graphic img {
  max-width: 100%;
  height: auto;
  max-height: 60vh;
  background-color: #C2B2B4;
  padding: 10px;
  border-top-left-radius: 218px;
  border-bottom-right-radius: 218px;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  display: block;
  margin: 0 auto;
}

@media (max-width: 992px) {
  #hero {
    flex-direction: column;
    justify-content: center;
    padding-top: var(--nav-height);
    height: auto;
    min-height: 100vh;
  }

  .hero-content {
    margin-bottom: 3rem;
  }

  .hero-graphic {
    width: 100%;
  }

  .hero-graphic img {
    border-top-left-radius: 120px;
    border-bottom-right-radius: 120px;
  }
}

@media (max-width: 480px) {
  .hero-graphic img {
    border-top-left-radius: 80px;
    border-bottom-right-radius: 80px;
  }
}
.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--accent-color);
  color: var(--bg-color);
  font-weight: 700;
  border-radius: 5px;
  transition: transform 0.3s ease, background-color 0.3s ease;

}

.cta-button:hover {
  transform: translateY(-5px);
  background-color: #fff;
}

/* Services Section */
section {
  padding: 100px 5%;
}

h2 {
  font-size: 3rem;
  margin-bottom: 4rem;
  text-align: center;
}

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

.card {
  background-color: var(--card-bg);
  padding: 3rem;
  border-radius: 15px;
  border: 1px solid #333;
  transition: border-color 0.3s ease;
}

.card:hover {
  border-color: var(--accent-color);
}

.card h3 {
  color: var(--accent-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Creative Space Section */
#space {
  background-color: #111;
  text-align: center;
}

.space-content {
  max-width: 800px;
  margin: 0 auto;
}

/* Contact Section */
#contact {
  text-align: center;
}

.email-link {
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  font-weight: 800;
  font-family: 'Syne', sans-serif;
  color: var(--text-color);
  border-bottom: 2px solid var(--accent-color);
}

.email-link:hover {
  color: var(--accent-color);
}

/* Layout Helpers */
.container-legal {
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}

.legal-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0;
}

.legal-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.legal-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-color);
}

/* Footer */
footer {
  padding: 50px 5%;
  border-top: 1px solid #333;
  text-align: center;
  opacity: 0.6;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  header {
    justify-content: center;
  }
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--card-bg);
  color: var(--text-color);
  padding: 1.5rem 5%;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2000;
  border-top: 2px solid var(--accent-color);
  transition: transform 0.5s ease;
}

#cookie-banner.hidden {
  transform: translateY(100%);
  display: none;
}

.cookie-content {
  font-size: 0.9rem;
  max-width: 80%;
  margin-right: 2rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

.cookie-button {
  padding: 0.5rem 1.5rem;
  border-radius: 5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  border: none;
}

.cookie-accept {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

.cookie-accept:hover {
  background-color: var(--secondary-accent);
}

@media (max-width: 768px) {
  #cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-content {
    max-width: 100%;
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/*
 * Hide visually and from screen readers
 */

.hidden,
[hidden] {
  display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visually-hidden {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
  /* 1 */
}

/*
 * Extends the .visually-hidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visually-hidden.focusable:active,
.visually-hidden.focusable:focus {
  clip: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
  white-space: inherit;
  width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * The use of `table` rather than `block` is only necessary if using
 * `::before` to contain the top-margins of child elements.
 */

.clearfix::before,
.clearfix::after {
  content: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
  /* Style adjustments for viewports that meet the condition */
}

@media print,
  (-webkit-min-device-pixel-ratio: 1.25),
  (min-resolution: 1.25dppx),
  (min-resolution: 120dpi) {
  /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  abbr[title]::after {
    content: " (" attr(title) ")";
  }

  /*
   * Don't show links that are fragment identifiers,
   * or use the `javascript:` pseudo protocol
   */
  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: "";
  }

  pre {
    white-space: pre-wrap !important;
  }

  pre,
  blockquote {
    border: 1px solid #999;
    page-break-inside: avoid;
  }

  tr,
  img {
    page-break-inside: avoid;
  }

  p,
  h2,
  h3 {
    orphans: 3;
    widows: 3;
  }

  h2,
  h3 {
    page-break-after: avoid;
  }
}

