
/* ========================================
   THE SOLITUDE SPACE
   Main website styling
======================================== */

:root {
  --bg: #07111F;
  --bg-soft: #0C1B2B;
  --surface: #102940;
  --accent: #54DDF5;
  --text: #EAF2F8;
  --muted: #9BAFC1;
  --border: rgba(234, 242, 248, 0.12);
  --header-bg: rgba(7, 17, 31, 0.88);
  --radius: 18px;
  --max-width: 1160px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.7;
  transition: background 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

/* Navigation */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.navbar {
  width: min(100% - 48px, var(--max-width));
  min-height: 78px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: -0.6px;
  white-space: nowrap;
}

.logo span,
.hero h1 span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

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

.menu-toggle,
.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: var(--bg-soft);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  font-size: 1.25rem;
}

.theme-toggle {
  font-size: 1.35rem;
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  min-height: 650px;
  width: min(100% - 48px, var(--max-width));
  margin: auto;
  padding: 110px 0 100px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero h1 {
  max-width: 790px;
  font-size: clamp(2.8rem, 6.3vw, 5.6rem);
  line-height: 1.08;
  letter-spacing: -3px;
  font-weight: 750;
  position: relative;
  z-index: 2;
}

.hero-description {
  max-width: 560px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 1.08rem;
  position: relative;
  z-index: 2;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  position: relative;
  z-index: 2;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  color: #06121D;
  background: var(--accent);
}

.button-primary:hover {
  background: #8CEBFA;
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(16, 41, 64, 0.45);
}

/* Abstract hero artwork */

.hero-visual {
  position: absolute;
  width: 390px;
  height: 390px;
  right: -35px;
  top: 50%;
  transform: translateY(-42%);
  z-index: -1;
  opacity: 0.8;
  pointer-events: none;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(84, 221, 245, 0.15),
    rgba(16, 41, 64, 0.06) 48%,
    transparent 72%
  );
  filter: blur(12px);
}

.orb {
  position: absolute;
  border-radius: 50%;
  animation: float 7s ease-in-out infinite;
}

.orb-one {
  width: 95px;
  height: 95px;
  top: 35%;
  left: 38%;
  background: radial-gradient(circle at 30% 25%, #C6F8FF, #54DDF5 35%, #12628A 75%);
  box-shadow: 0 0 65px rgba(84, 221, 245, 0.3);
}

.orb-two {
  width: 32px;
  height: 32px;
  top: 18%;
  left: 64%;
  background: radial-gradient(circle at 30% 25%, #FFFFFF, #54DDF5 55%, #12628A);
  animation-delay: -2s;
}

.orb-three {
  width: 19px;
  height: 19px;
  top: 67%;
  left: 25%;
  background: var(--accent);
  box-shadow: 0 0 30px rgba(84, 221, 245, 0.5);
  animation-delay: -4s;
}

.orbit {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(84, 221, 245, 0.25);
  border-radius: 50%;
}

.orbit-one {
  transform: rotate(-28deg) scaleY(0.58);
}

.orbit-two {
  transform: rotate(45deg) scaleY(0.75);
}

.orbit-three {
  transform: rotate(90deg) scaleY(0.58);
}

/* General sections */

.section {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.section h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.2;
  letter-spacing: -1.3px;
  margin-bottom: 22px;
}

.section > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.02rem;
}

#contact .button {
  margin-top: 28px;
}

/* Footer */

footer {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
}

/* Light theme */

body.light-theme {
  --bg: #F4F8FC;
  --bg-soft: #EAF1F8;
  --surface: #FFFFFF;
  --accent: #087E9B;
  --text: #12283B;
  --muted: #52677A;
  --border: rgba(18, 40, 59, 0.14);
  --header-bg: rgba(244, 248, 252, 0.9);
}

body.light-theme .button-primary {
  color: #FFFFFF;
  background: #087E9B;
}

body.light-theme .button-primary:hover {
  background: #066981;
}

body.light-theme .button-secondary {
  background: rgba(234, 241, 248, 0.8);
}

/* Animation */

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

/* Responsive layout */

@media (max-width: 900px) {
  .navbar {
    gap: 14px;
  }

  .nav-links {
    gap: 17px;
  }

  .hero-visual {
    right: -125px;
    opacity: 0.48;
  }

  .hero h1 {
    max-width: 700px;
  }
}

@media (max-width: 680px) {
  .navbar {
    width: calc(100% - 32px);
    min-height: 70px;
    gap: 10px;
  }

  .logo {
    font-size: 1rem;
    margin-right: auto;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    padding: 22px 24px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .nav-links.active {
    display: flex;
  }

  .hero {
    width: calc(100% - 36px);
    min-height: 590px;
    padding: 85px 0 75px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 4rem);
    letter-spacing: -1.8px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-visual {
    width: 300px;
    height: 300px;
    right: -135px;
    top: 56%;
    opacity: 0.35;
  }

  .section {
    width: calc(100% - 36px);
    padding: 76px 0;
  }

  .section h2 {
    letter-spacing: -0.8px;
  }

  .button {
    padding: 12px 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}


/* Services section */

.section-intro {
  margin-bottom: 34px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 38px;
}

.service-card {
  position: relative;
  min-height: 265px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(
    145deg,
    rgba(16, 41, 64, 0.72),
    rgba(12, 27, 43, 0.55)
  );
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
}

.service-number {
  display: inline-block;
  margin-bottom: 26px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 1.5px;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
  line-height: 1.35;
}

.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.service-tag {
  display: inline-block;
  margin-top: 22px;
  padding: 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.73rem;
}

/* Light theme service cards */

body.light-theme .service-card {
  background: linear-gradient(145deg, #FFFFFF, #EAF1F8);
}

/* Responsive service cards */

@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 24px;
  }

  .service-number {
    margin-bottom: 18px;
  }
}


/* Selected Work section */

.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0;
}

.filter-btn {
  padding: 10px 17px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease,
    border-color 0.25s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent);
  color: #07111F;
  border-color: var(--accent);
}

.filter-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 41, 64, 0.55);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.project-visual {
  min-height: 205px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #102940, #07111F);
}

.project-visual span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.project-visual strong {
  max-width: 240px;
  color: #EAF2F8;
  font-size: 1.65rem;
  line-height: 1.2;
}

.project-web {
  background: linear-gradient(135deg, #123A50, #102940, #07111F);
}

.project-video {
  background: linear-gradient(135deg, #26334F, #14243A, #07111F);
}

.project-info {
  padding: 24px;
}

.project-info h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.project-info p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.project-status {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent);
  font-size: 0.78rem;
}

/* Light theme */

body.light-theme .project-card {
  background: #FFFFFF;
}

body.light-theme .project-visual {
  background: linear-gradient(135deg, #DCEAF3, #AFC8D9);
}

body.light-theme .project-visual strong {
  color: #07111F;
}

body.light-theme .project-web {
  background: linear-gradient(135deg, #D6EDF3, #B4D4E5);
}

body.light-theme .project-video {
  background: linear-gradient(135deg, #DCDFF1, #B9C9E3);
}

/* Responsive layout */

@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-visual {
    min-height: 175px;
  }
}


/* My Journey section */

.journey-list {
  position: relative;
  display: grid;
  gap: 22px;
  margin-top: 38px;
}

.journey-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.journey-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(84, 221, 245, 0.08);
}

.journey-content {
  padding: 25px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(
    145deg,
    rgba(16, 41, 64, 0.72),
    rgba(12, 27, 43, 0.55)
  );
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.journey-content:hover {
  border-color: var(--accent);
  transform: translateX(5px);
}

.journey-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.4px;
}

.journey-content h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.journey-content p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.journey-status {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.75rem;
}

/* Light theme */

body.light-theme .journey-content {
  background: linear-gradient(145deg, #FFFFFF, #EAF1F8);
}

/* Mobile layout */

@media (max-width: 560px) {
  .journey-item {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .journey-marker {
    width: 38px;
    height: 38px;
    font-size: 0.75rem;
  }

  .journey-content {
    padding: 20px;
  }
}


/* Ideas & Interests section */

.ideas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 38px;
}

.idea-card {
  position: relative;
  min-height: 220px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(
    145deg,
    rgba(16, 41, 64, 0.78),
    rgba(12, 27, 43, 0.55)
  );
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.idea-card::after {
  content: "";
  position: absolute;
  right: -35px;
  bottom: -55px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(84, 221, 245, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.idea-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.idea-symbol {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 750;
  letter-spacing: 1.5px;
}

.idea-card h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.idea-card p {
  max-width: 440px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* Light theme */

body.light-theme .idea-card {
  background: linear-gradient(145deg, #FFFFFF, #EAF1F8);
}

/* Responsive layout */

@media (max-width: 560px) {
  .ideas-grid {
    grid-template-columns: 1fr;
  }

  .idea-card {
    min-height: auto;
    padding: 25px;
  }

  .idea-symbol {
    margin-bottom: 20px;
  }
}


/* Contact section */

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr);
  align-items: center;
  gap: 35px;
  margin-top: 38px;
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(
    135deg,
    rgba(16, 41, 64, 0.85),
    rgba(7, 17, 31, 0.75)
  );
}

.contact-label {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.contact-message h3 {
  max-width: 480px;
  margin-bottom: 15px;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.35;
}

.contact-message p {
  max-width: 520px;
  color: var(--muted);
  line-height: 1.8;
}

.contact-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.contact-email {
  color: var(--muted);
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

body.light-theme .contact-panel {
  background: linear-gradient(135deg, #FFFFFF, #EAF1F8);
}

@media (max-width: 700px) {
  .contact-panel {
    grid-template-columns: 1fr;
    padding: 27px;
    gap: 28px;
  }
}
