@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500&display=swap');

:root {
  --primary-gradient: linear-gradient(135deg, #4c1d95, #0ea5e9, #f43f5e, #8b5cf6);
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.25);
  --glass-highlight: rgba(255, 255, 255, 0.35);
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --accent-teal: #2dd4bf;
  --accent-coral: #fb7185;
  --accent-violet: #8b5cf6;
  --logo-size: 80px;
}

.logo-square {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: var(--logo-size);
  /*aspect-ratio: 1 / 1;*/
  /*background: rgba(255, 255, 255, 0.05);*/
  /*border: 1px solid var(--glass-border);*/
  /*border-radius: 12px;*/
  font-family: 'Inter', sans-serif;
  text-decoration: none;
  line-height: 1;
  padding: 15px;
  /*transition: all 0.3s ease;*/
  /*backdrop-filter: blur(5px);*/
  flex-shrink: 0;
}

.logo-square:hover {
  /*background: rgba(255, 255, 255, 0.1);*/
  /*border-color: var(--glass-highlight);*/
  /*transform: scale(1.05);*/
}

.logo-line-go {
  color: #ffffff;
  font-weight: 200;
  font-size: calc(var(--logo-size) * 0.22);
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}

.logo-line-thrive {
  color: var(--accent-teal);
  font-weight: 400;
  font-size: calc(var(--logo-size) * 0.22);
  letter-spacing: 0.1em;
  display: flex;
  align-items: flex-end;
}

.logo-triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: calc(var(--logo-size) * 0.08) calc(var(--logo-size) * 0.08) 0 0;
  border-color: transparent #00000066 transparent transparent;
  margin-left: 3px;
  align-self: flex-start;
  margin-top: calc(var(--logo-size) * 0.03);
  transform: rotate(-90deg);
}

.accent-text {
  color: var(--accent-teal);
  font-weight: 500;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--primary-gradient);
  background-attachment: fixed;
  background-size: 400% 400%;
  animation: gradientBG 80s ease-in-out infinite;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 300;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

h1, h2, h3 {
  font-weight: 200;
  letter-spacing: 0.1em;
  text-transform: none;
}

h1 {
  display: inline-block;
}

/* Glass Container Style */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 80px;
}

.glass-panel:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--glass-highlight);
  box-shadow: 0 8px 48px 0 rgba(0, 0, 0, 0.3);
}

/* Section Styling */
section {
  min-height: 100vh;
  padding: 80px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  text-align: center;
}

/* Navigation */
nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1200px;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

.logo {
  font-size: 1.4rem;
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.2em;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 25px;
  height: 20px;
  cursor: pointer;
  z-index: 1001;
  margin-left: 20px;
}

.nav-controls {
  display: flex;
  align-items: center;
}

.nav-icon-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding-top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, color 0.3s ease;
  z-index: 1001;
}

.nav-icon-btn:hover {
  transform: scale(1.1);
  color: var(--accent-teal);
}

.monochrome-mode {
  filter: grayscale(100%) brightness(68%) contrast(240%);
}

.monochrome-mode #particle-canvas {
  opacity: 0.3; /* Optionally dim particles in monochrome */
}

.monochrome-mode .logo-triangle {
  border-color: transparent #FFFFFF66 transparent transparent;
}

.hamburger span {
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 10px;
  transition: all 0.3s linear;
}

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

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: color 0.3s, text-shadow 0.3s;
}

nav ul li a:hover {
  color: var(--text-primary);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Hero Section */
#hero h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #fff;
}

#hero .subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 800px;
  margin-bottom: 40px;
  letter-spacing: 0.1em;
  font-weight: 300;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-bottom: 50px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--accent-teal);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 5px;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

.cta-button {
  padding: 18px 45px;
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.4s ease;
  text-decoration: none;
  display: inline-block;
  backdrop-filter: blur(10px);
}

.cta-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Services Section */
#services h2 {
  font-size: 3rem;
  margin-bottom: 80px;
  color: var(--text-primary);
}

.services-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  width: 100%;
}

.service-card {
  flex: 1;
  padding: 50px;
  text-align: left;
  min-width: 0; /* Allow shrinking below content width */
}

.service-card h3 {
  margin-bottom: 25px;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 1rem;
}

.icon-refraction {
  width: 50px;
  height: 50px;
  background: linear-gradient(45deg, var(--accent-teal), var(--accent-violet));
  border-radius: 12px;
  margin-bottom: 30px;
  filter: blur(2px);
  opacity: 0.6;
  transition: all 0.5s ease;
}

.service-card:hover .icon-refraction {
  filter: blur(0px);
  opacity: 1;
  transform: rotate(15deg) scale(1.1);
}

/* About Section */
#about .content {
  max-width: 900px;
  padding: 80px;
}

#about h2 {
  margin-bottom: 40px;
  font-size: 2.8rem;
}

#about p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 200;
  line-height: 1.8;
}

/* Testimonials */
.testimonial-card {
  max-width: 800px;
  padding: 60px;
  text-align: center;
  position: relative;
}

.testimonial-card::before {
  content: '“';
  position: absolute;
  top: 20px;
  left: 40px;
  font-size: 8rem;
  color: rgba(255, 255, 255, 0.1);
  font-family: serif;
}

.testimonial-card p {
  font-size: 1.5rem;
  font-style: italic;
  margin-bottom: 30px;
  font-weight: 200;
}

cite {
  display: block;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-teal);
  font-style: normal;
}

/* Contact Section */
#contact h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

#contact .subtitle {
  margin-bottom: 30px;
  color: var(--text-secondary);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
}

form {
  width: 100%;
  max-width: 700px;
  padding: 60px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

input, textarea {
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
}

input:focus, textarea:focus {
  background: rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

input::placeholder, textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* Footer */
footer {
  padding: 10px 10%;
  text-align: center;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

footer .logo-square {
  display: inline-block;
  margin-right: 40px;
}

.footer-logo {
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  font-weight: 500;
  display: block;
  margin-bottom: 20px;
}

footer p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  display: inline-block;
}

.hero-content {
  padding: 60px;
  max-width: 900px;
  width: 100%;
}

@media (max-width: 768px) {
  :root {
    --logo-size: 80px;
  }

  .logo-square {
    padding: 6px;
  }

  .glass-panel {
    border-radius: 12px;
    padding: 15px;
  }

  #hero h1 {
    font-size: 3rem;
  }

  nav {
    border-radius: 12px;
    padding: 8px 15px 8px 8px;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 0 0 20px 20px;
    border: 1px solid var(--glass-border);
    border-top: none;
    text-align: center;
    gap: 20px;
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 0;
  }

  section {
    padding: 80px 5%;
  }

  form {
    padding: 0;
  }

  .services-grid {
    flex-direction: column;
  }

  .service-card {
    padding: 40px 30px;
  }

  .icon-refraction {
    filter: blur(0px);
    opacity: 1;
  }

  .hero-logo {
    --logo-size: 150px !important;
  }

  #about .content {
    padding: 15px;
  }

  #contact .subtitle {
    margin-bottom: 20px;
  }

  #contact h2 {
    line-height: 1.2;
  }

  footer {
    padding: 15px;
  }

  #monochrome-toggle {
    display: inline-block;
  }
}
