/*! HTML5 Boilerplate v9.0.0-RC1 | 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 {
  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
   ========================================================================== */

/* ==========================================================================
   Helper classes
   ========================================================================== */

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

p {
  line-height: 1.5;
  margin-bottom: 20px;
  text-align: justify;
}

p:last-child {
  margin-bottom: 0;
}

section, .section {
    padding-bottom: 55px!important;
}

.anticon {
    width: 75px;
    height: 75px;
    animation: ease-in-out;
}

/* --- Setup & Variables --- */
:root {
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --text-color: #ffffff;
  --primary: #2c3e50;
  --accent: #e74c3c;
  --secondary: #3498db;
  --light: #ecf0f1;
  --dark: #1a252f;
  --gold: #f39c12;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, sans-serif;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
  overflow-x: hidden;
  color: white;
  min-height: 200vh;
  padding-top: 80px;
}

body.menu-open {
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- The Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  z-index: 9998;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--light);
  text-decoration: none;
  z-index: 10000;
}

.logo img {
  max-width: 110px;
  padding: 5px;
  margin: 5px auto;
}

/* --- Hamburger Icon --- */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 10000;
  position: relative;
}

.menu-toggle span {
  width: 28px;
  height: 2px;
  background: white;
  transition: 0.3s;
}

/* Animate to 'X' */
.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* --- Full Screen Overlay --- */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 9999;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Close button in overlay */
.close-menu {
  position: absolute;
  top: 20px;
  right: 5%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10001;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-overlay.open .close-menu {
  opacity: 1;
  transition-delay: 0.3s;
}

.close-menu span {
  position: absolute;
  width: 30px;
  height: 2px;
  background: white;
  top: 50%;
  left: 50%;
  transition: 0.3s;
}

.close-menu span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-menu span:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.close-menu:hover span {
  background: var(--accent);
}

.nav-links {
  list-style: none;
  text-align: center;
}

.nav-links li {
  margin: 25px 0;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.4s;
}

.nav-overlay.open li {
  opacity: 1;
  transform: translateY(0);
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 2rem;
  font-weight: 300;
  transition: color 0.3s;
}

/* Staggered animation for links */
.nav-overlay.open li:nth-child(1) {
  transition-delay: 0.1s;
}

.nav-overlay.open li:nth-child(2) {
  transition-delay: 0.2s;
}

.nav-overlay.open li:nth-child(3) {
  transition-delay: 0.3s;
}

.nav-overlay.open li:nth-child(4) {
  transition-delay: 0.4s;
}

.nav-links a:hover {
  color: var(--accent);
}

.span2 {
  color: var(--accent);
}

/* Hero Section */
.hero {
  margin-top: 80px;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(231, 76, 60, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  color: var(--light);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 2rem;
  font-style: italic;
  text-align: right;
  margin-top: 2rem;
  padding-top: 2rem;
}

.border-bottom {
  border-bottom: 2px solid var(--light);
  padding-right: 100px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--light);
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

/* Concept Section */
.concept {
  background: white;
  padding: 80px 0;
  clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
  margin: -50px 0;
}

.concept h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary);
}

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

.concept-card {
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.concept-card:hover {
  transform: translateY(-10px);
}

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

.concept-card p {
  color: var(--primary);
  line-height: 1.8;
}

/* Examples Section */
.examples {
  padding: 100px 0;
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
}

.examples h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--light);
}

.examples .intro {
  text-align: center;
  color: var(--light);
  max-width: 800px;
  margin: 0 auto 4rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.example-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 3rem;
  border-left: 5px solid var(--accent);
  transition: all 0.3s;
}

.example-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(10px);
}

.example-number {
  display: inline-block;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 50px;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.example-item h3 {
  color: var(--gold);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.example-item .context {
  color: var(--light);
  margin-bottom: 1.5rem;
  padding: 1.5rem;
  background: rgba(52, 152, 219, 0.1);
  border-radius: 10px;
  border-left: 3px solid var(--secondary);
}

.example-item .anticontext {
  color: var(--light);
  padding: 1.5rem;
  background: rgba(231, 76, 60, 0.1);
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}

.label {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  display: block;
}

.context .label {
  color: var(--secondary);
}

.anticontext .label {
  color: var(--accent);
}

/* Philosophy Section */
.philosophy {
  background: white;
  padding: 80px 0;
  clip-path: polygon(0 5%, 100% 0, 100% 100%, 0 100%);
  margin-top: -50px;
}

.philosophy h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.philosophy-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 2;
  color: var(--primary);
}

.philosophy-content p {
  margin-bottom: 1.5rem;
}

.quote {
  font-style: italic;
  font-size: 1.3rem;
  text-align: center;
  color: var(--accent);
  margin: 3rem 0;
  padding: 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  border-left: 5px solid var(--gold);
}

/* Footer */
footer {
  background: var(--dark);
  color: var(--light);
  padding: 3rem 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  color: var(--light);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .hero .subtitle {
    font-size: 1.2rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    font-size: 10px;
  }

  .concept-grid {
    grid-template-columns: 1fr;
  }

  .example-item {
    padding: 1.5rem;
  }

  .nav-links a {
    font-size: 1.5rem;
  }
}

@media (max-width: 478px) {
  .example-item {
    padding: 1rem;
  }
}

/* Scroll Animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
