
:root {
  --bg-light: #eef3f9;
  --bg-dark: #0f1720;
  --bg-light-darker: #c8cdd2;
  --bg-dark-lighter: #263647;
  --header-light: #eef3f9DD;
  --header-dark: #131d31DD;
  --header-text-light: #0b1220;
  --header-text-dark: #c3c6c9;
  --footer-light: #00121f;
  --footer-dark: #131d31;
  --footer-text-light: #eef3f9;
  --footer-text-dark: #eef3f9;
  --toggle-light: #95acbb;
  --toggle-dark: #0f1720;
  --card-light: #9aa6b2;
  --card-dark: #0b1220;
  --text-light: #0b1220;
  --text-dark: #e6eef6;
  --muted-light: #3a3939;
  --muted-dark: #d8dde2;
  --accent: #95acbb;
  --accent-dark: #698596;
  --accent-darker: #698596;
  --accent-dark-darker: #425a69;
  --accent-mute: #95acbb85;
  --accent-dark-mute: #69859685;
  --text-on-accent: #0b1220;
  --text-on-accent-dark: #c3c6c9;
  --dark-section: #00121f;
  --gradient-accent: linear-gradient(to bottom right, var(--bg-light), var(--accent-mute));
  --gradient-accent-dark: linear-gradient(to bottom right, var(--dark-section), var(--accent-dark-mute));
  --radius: 10px;
  --maxw: 1500px;
}

* {
  box-sizing:border-box
}
html,body {
  height:100%
}
html { 
  scroll-behavior: smooth; 
}
textarea {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Roboto", "Arial";
}
body {
  margin:0;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Roboto", "Arial";
  line-height:1.45;
  background:var(--bg-light);
  color:var(--text-light);
  font-weight: 500;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  transition: none;
}
body.theme-ready {
  transition: background 0.5s ease, color 0.5s ease;
}
a:link {
  color: lightskyblue;
}
a:visited {
  color: #6d4b8d;
}
a:active {
  color: #ff4040;
}

/* Main Structure */
.full-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}
.main-content {
  width: 100%;
  flex: 1;
}
.container {
  flex: 1;
  padding: 56px 56px;
  width: 100%;
  height: auto;
}
.content {
  max-width:var(--maxw); /* Leave this here? */
  height: auto;
  margin:0 auto;
  gap: 10px;
}

/* General */
p {
  color: var(--text-light);
  font-size: 16px;
  margin: 16px 0;
}
p.lead, ul.lead {
  color: var(--muted-light);
  font-weight: 400;
}
p.clickable a {
  text-decoration: none;
  transition: color 0.5s ease;
  color: var(--text-light);
}
p.lead a {
  text-decoration: none;
  transition: color 0.5s ease;
  color: var(--muted-light);
}
p.lead.small {
  font-style: italic;
  font-size: 12px;
}
p.small {
  font-size: 12px;
}
p.big {
  font-size: 20px;
  font-weight: 700;
}
.cta-parent.left {
  flex: 1;
  align-self: flex-start;
}
.cta-parent.right {
  align-self: flex-end;
}
.cta {
  cursor: pointer;
  display:inline-block;
  padding:10px 16px;
  border-radius: var(--radius);
  text-decoration:none;
  font-weight:700;
  box-shadow: 2px 2px 10px rgba(12,20,40,0.06);
  transition: 
    background 0.5s ease, 
    color 0.5s ease,
    transform 0.5s ease;
}
.cta:link, .cta:visited, .cta:active {
  color:var(--text-on-accent);
}
.cta.main {
  background: var(--accent);
  color: var(--text-on-accent);
  border: none;
  align-self: flex-start;
}
.cta.bg {
  background: var(--text-dark);
  color: var(--accent-darker);
}
.cta.border {
  background: transparent;
  border: 2px solid var(--text-dark);
  color: var(--text-dark);
}
.cta.accent {
  background: var(--accent-dark);
  color: var(--bg-light);
}
.product-screenshot {
  max-width: 100%;
  height: 100%;
  background-color: var(--background-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-light);
  transition: transform 0.5s ease;
}
.product-screenshot img {
  max-width: 100%;
  height: auto;
}
.visual-dark {
  display: none;
}
.img-container {
  border-radius: var(--radius);
  background: var(--accent-dark);
  padding: 15px;
}
.img-clickable {
  transition: 
    transform 0.5s ease;
}
.cards {
  margin-top: 40px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:25px;
}
.card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 20px;
  background: var(--gradient-accent);
  border-style: solid;
  border-width: 2px;
  border-color: var(--bg-light-darker);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(12,20,40,0.06);
  transition: border-color 0.5s ease;
}
.card.card-dark {
  background: var(--gradient-accent-dark);
  border-color: var(--bg-dark-lighter);
}
.card h2, .card h3, .card p {
  margin: 0;
}
.in-text {
  margin-right: 5px;
}


/* Header */
.header {
  background:var(--header-light);
  position:sticky;
  top:0;
  z-index:40;
  border-bottom:1px solid rgba(0,0,0,0.04);
  padding-top: 0px;
  padding-bottom: 0px;
  backdrop-filter: blur(4px);
  float: right;
  text-align: right;
}
.language-toggle {
  display: none;
  transition: transform 0.5s ease;
}
.header .language-alt {
  display: none;
  margin: 5px auto;
}
.header .language-alt .select-page-language {
  margin: auto;
  max-width: 150px;
}
.header .header-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  max-width:var(--maxw);
  margin:0 auto;
  /* padding:0px 28px; */
  gap:12px
}

.header-left {
  display: flex;
  align-items: center;
  /* margin-right: 10px; */
  max-width: 40%;
  gap: 10px;
}
.logo {
  display:flex;
}
.logo img {
  object-fit: contain;
  max-width:100%;
  /* max-height:auto; */
}
.header-logo.small {
  display: none;
}

.header-center {
  display: flex;
  align-items: center;
  /* max-width: 60%; */
  min-width: 100px;
}
.mobile-page-title {
  display: none;
  font-size: 18px;
  font-weight: 600;
  color: var(--header-text-light);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  color: var(--header-text-light);
  padding: 4px 8px;
}
.nav-toggle .icon-close {
  display: none;
}
.nav a {
  margin: 0px;
  padding: 5px 9px;
  border-radius: var(--radius);
  text-decoration:none;
  color:var(--header-text-light);
  font-weight:600;
  transition: background 0.5s ease, color 0.5s ease;
}
.nav .nav-current {
  /* color:var(--accent); */
  background: var(--accent);
  transition: background 0.5s ease, color 0.5s ease;
}

.header-right {
  min-width: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.theme-toggle {
  display:flex;
  align-items:center;
  gap:8px
}
.toggle-btn {
  width:46px;
  height:26px;
  border-radius:14px;
  background:var(--toggle-light);
  position:relative;
  cursor:pointer;
  transition: background 0.5s ease;
}
.knob {
  position:absolute;
  top:3px;
  left:3px;
  width:20px;
  height:20px;
  border-radius:50%;
  background:#fff;
  transition: transform 0.5s ease;
}

/* Footer */
.footer {
  /* flex:0 0 auto; */
  text-align:center;
  justify-content: center;
  background: var(--footer-light);
}
.footer p {
  color:var(--footer-text-light);
}
.footer-content {
  z-index: 20;
  max-width: var(--maxw);
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-items: center;
  padding: 20px 0;
  margin: auto;
}
.footer-top {
  margin-top: 0;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
  gap:25px;
}
.footer-top-card {
  width: 300px;
  /* background: red; */
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.footer-top-card .logo img {
  border-radius: var(--radius);
}
.footer-line {
  height: 1px;
  width: 100%;
  background: var(--muted-light);
  margin: 20px 0;
}
.footer-bottom {
  display: flex;
  flex-direction: row;
}
.footer-copyright {
  flex: 1;
  margin: auto;
}
.footer p {
  margin: 0;
  text-align: left;
}
.footer p.lead a {
  color: var(--footer-text-light);
}


/* Home */
/* Home - Hero (All Hero) */
.hero.container {
  background: var(--gradient-accent);
}
.hero.content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 25px;
}
.hero-text {
  flex: 1;
}
.hero-links {
  display: none;
  margin-top: 20px;
}
.hero-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.cta.hero {
  background: var(--bg-light);
  border-style: solid;
  border-width: 2px;
  border-color: var(--bg-light-darker);
  transition: 
    background 0.5s ease,
    color 0.5s ease,
    transform 0.5s ease;
}
.hero-img {
  flex: 1;
  display: flex;
}
.hero-img img {
  border-radius: var(--radius);
  justify-content: center;
  margin: auto;
  max-width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}

/* Home - Services */
.home-services.container {
  background: var(--bg-light);
}
.home-services.content {
  justify-items: center;
  padding: 20px 0;
}
.home-services.content h1, .home-services.content p {
  text-align: center;
  max-width: 60%;
  margin-top: 0;
}
.home-services.cards p {
  text-align: left;
  max-width: 100%;
}
.home-services.cards {
  width: 100%;
}
.card-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
  transition: transform 0.5s ease;
}

/* Home - About */
.home-about.container {
  background: var(--dark-section);  /* Maybe same as footer? */
}
.home-about.content {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 20px 0;
}
.home-about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.home-about-text h1 {
  color: var(--text-dark);
  margin: 0;
}
.home-about-text p.lead {
  color: var(--muted-dark);
  margin: 0;
}
.home-about-buttons {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.home-about-list {
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.about-list-icon {
  width: 50px;
  height: 50px;
  padding: 12.5px;
  margin-top: 5px;;
}
.home-about-img {
  flex: 1;
  display: flex;
}
.home-about-img img {
  border-radius: var(--radius);
  justify-content: center;
  margin: auto;
  max-width: 100%;
  height: auto;
}
.home-about-list-text p {
  color: var(--text-dark);
  margin: 5px 0;
}
.home-about-list-text p.lead {
  color: var(--muted-dark);
  font-size: 14px;
}

/* Home - Featured */
.home-featured.container {
  background: var(--bg-light);
}
.home-featured.content {
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-items: center;
}
.home-featured h1, .home-featured p {
  text-align: center;
  max-width: 60%;
  margin: auto;
}
.featured-arrows {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}
.slider-arrow {
  background: var(--bg-light);
  color: var(--muted-light);
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  /* box-shadow: 0 2px 6px rgba(0,0,0,0.1); */
  z-index: 10;
  transition: background 0.5s ease, color 0.5s ease;
}
.arrow-mobile {
  display: none;
  margin-bottom: 20px;
}
.featured-slider {
  flex: 1;
  align-items: center;
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  height: auto;
  gap: 24px;
  padding:22px;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-y pan-x;
  cursor: grab;
  transition: height 1s ease;
}
.featured-slider.grabbing {
  cursor: grabbing;
}
.featured-slider::-webkit-scrollbar {
  display: none;
}
.noselect, .featured-slider, .featured-slider * {
  -webkit-user-select: none;
  user-select: none;
}
.featured {
  display: flex;
  position: absolute;
  width: calc(100% - 44px);
  height: auto;
  opacity: 0;
  transition: transform 1s ease, opacity 1s ease;
  pointer-events: none;
  margin-top: 0px;
  gap:28px;
  flex: 1;
}
.featured p {
  text-align: left;
  margin: 0;
}
.featured.enter-from-left {
  transition: transform 0s ease;
  transform: translateX(-100%) scale(0.5, 0.5);
}
.featured.enter-from-right {
  transition: transform 0s ease;
  transform: translateX(100%) scale(0.5, 0.5);
}
.featured.active {
  transition: transform 1s ease;
  opacity: 1;
  transform: translateX(0%) scale(1, 1);
  pointer-events: auto;
}
.featured.exit-to-right {
  transform: translateX(100%) scale(0.5, 0.5);
  opacity: 0;
}
.featured.exit-to-left {
  transform: translateX(-100%) scale(0.5, 0.5);
  opacity: 0;
}
.featured .left, .section-projects .left {
  height:100%;
  flex:1;
}
.featured .right, .section-projects .right {
  max-width: 33%;
}
.featured h2, .section-projects h2 {
  font-size:2.1rem;
  margin:0 0 16px
}
.featured p.lead, .section-projects p.lead {
  margin:0 0 16px;
  color:var(--muted-light)
}
.slider-dot-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 10px;
}
.slider-dots {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}
.slider-dots button {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: none;
  background: var(--bg-light-darker);
  cursor: pointer;
  transition: 
    transform 0.5s ease,
    background 0.5s ease;
}
.slider-dots button.active {
  background: var(--accent);
}

/* Home - CTA (All CTA) */
.section-cta.container {
  background: var(--accent-darker);
}
.section-cta.content {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  gap: 10px;
  justify-items: center;
  max-width: 80%;
}
.section-cta.content h1 {
  text-align: center;
  color: var(--text-dark);
  margin: auto;
}
.section-cta.content p {
  text-align: center;
  color: var(--muted-dark);
  margin: auto;
}
.section-cta-buttons {
  margin: 60px auto 0px;
  display: flex;
  flex-direction: row;
  gap: 30px;
}
.section-cta-buttons .cta-parent {
  margin: 0;
}
.section-cta-checks {
  margin: 40px auto 0px;
  display: flex;
  flex-direction: row;
  gap: 45px;
}
.section-cta .section-cta-checks p {
  color: var(--text-dark);
}

/* Services */
.service-visual {
  display: grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,0.25fr));
  gap: 30px;
}
.service-visual img {
  border-radius: var(--radius);
  margin: auto;
}
/* Services - Mobile */
.services-mobile.container {
  background: var(--bg-light);
}

/* Services - Web */
.services-web.container {
  background: var(--dark-section);
}
.services-web h1, .services-web h3, .services-web p, .services-web ul {
  color: var(--text-dark);
}
.services-web p.lead, .services-web ul.lead  {
  color: var(--muted-dark);
}

/* Services - Custom */
.services-custom.container {
  background: var(--bg-light);
}

/* Services - General */
.featured-example {
  margin: 10px 0px 25px 0px;
}
.featured-example .left {
  flex: 1;
}
.featured-example .right {
  /* max-width: 50%; */
  flex: 1;
}
.featured-example p {
  margin: 10px 0px;
}

/* Projects */
/* Hero */
.hero-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-filters p {
  cursor: pointer;
}
.hero-filters .active a {
  background: var(--accent);
  border: none;
}
.project-cards.cards p {
  text-align: left;
  max-width: 100%;
}
.project-cards.cards {
  width: 100%;
  grid-template-columns:repeat(auto-fit,minmax(235px, 0.5fr));  /*Set custom width? */
}
.project-card.card {
  background: var(--bg-light);
  padding: 0;
  gap: 0;
}
.project-card-img {
  width: 100%;
  border-radius: var(--radius) var(--radius) 0 0;
  position: relative;
  overflow: hidden;
}
.project-card-img img {
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  overflow: hidden;
  transition: transform 0.5s ease;
}
.project-year {
  position: absolute;
  right: 10px;
  top: 10px;
  border: none;
}
.project-card-text {
  width: 100%;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.project-card-text h2 {
  margin: 0;
}
.project-tags {
  display: flex;
  gap: 10px;
}
.project-tags .project-tag.card {
  background: var(--bg-light-darker);
}
.project-tag.card {
  display: inline-block;
  padding: 2px 7px;
  width: fit-content;
  background: var(--bg-light);
}
.project-buttons {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
/* Featured/Selected */
.selected.container {
  background: var(--dark-section);
}
.selected.content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.selected.content img {
  width: 100%;
}
.selected.content h1, .selected.content h3, .selected.content p, .selected.content a, .selected.content ul {
  color: var(--text-dark);
  margin: 0;
}
.selected.content h3 {
  margin-top: 10px;
}
.selected.content a {
  font-weight: 500;
}
.selected.content p.lead, .selected.content ul.lead {
  color: var(--muted-dark);
}
.project-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.demo-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 330px;
}
.demo-card.card {
  background: var(--bg-light);
  position: relative;
}
.demo-card.card .icon {
  position: absolute;
  right: 0;
  bottom: 0;
  margin: 20px;
}
.demo-card.card .icon i {
  transition: transform 0.5s ease;
}
.demo-card.card .icon .icon-exp {
  display: none;
  position: absolute;
  right: 0;
  bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  background: var(--bg-light);
  border-radius: var(--radius);
  color: var(--text-light);
  padding: 5px;
}
.demo-card.card.gray {
  background: var(--bg-light-darker);
}
.demo-card.card p {
  color: var(--text-light);
}
.demo-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.demo-button {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.demo-button.right {
  margin: 10px auto 0px;
}
.demo-button .cta-parent .cta {
  color: var(--text-light);
  cursor: pointer;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid var(--bg-light-darker);
  border-top-color: var(--dark-section);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 10px auto;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.selected .cta-parent .cta {
  color: var(--text-on-accent);
}
.selected .back-projects {
  margin-top: 10px;
}
.selected .center {
  width: 100%;
  text-align: center;
}
.selected a p {
  text-decoration: none !important;
}
/* More */
.more.container {
  background: var(--bg-light);
}
.more.content h1 {
  margin: 0;
}

/* Card content */
/* .toggle-card {
  border-radius: var(--radius);
  padding: 5px;
  cursor: pointer;
  transition: transform 0.5s ease;
  height: 30px;
}
.toggle-card.rotate {
  transform: rotate(180deg);
} */

/* About */
.about-cards {
  margin-top: 25px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.about {
  display: flex;
  width: 100%;
  gap: 24px;
}
.about.left {
  align-self: flex-start;
}
.about.right {
  align-self: flex-end;
}
.about-text {
  width: 60%;
  flex: 1;
}
.about-img {
  width: 40%;
  border-radius: var(--radius);
  align-items: center;
  display: flex;
  justify-content: center;
}
.about-img.mobile {
  display: none;
}
.about-img img {
  object-fit: contain;
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  transition: transform 0.5s ease;
}
.img-circle {
  display: flex;
  justify-content: center;
  align-self: center;
}
.img-circle img {
  border-radius: 100%;
}

/* Contact form */
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px
}
.input, textarea, select {
  width:100%;
  padding:12px;
  margin:5px 0px;
  border-radius:8px;
  border:1px solid rgba(0,0,0,0.08);
  font-size:0.95rem;
  background-color: var(--bg-light);
  color: var(--text-light);
}
textarea {
  min-height:140px;
  resize:vertical;
}
.btn {
  display:inline-block;
  background: none;
  padding: 0;
  border: 0;
  cursor: pointer;
}
.contact-cards.cards {
  display: flex;
  flex-direction: column;
  margin-top: 10px;
  align-items: start;
}
.contact-cards .card {
  flex-direction: row;
  justify-items: center;
  align-items: center;
  background: var(--bg-light);
  min-width: 325px;
}
.contact-card-text {
  display: flex;
  flex-direction: column;
  gap: 3.6px;
  text-align: left;
}
.card-icon.contact {
  height: 50px;
  width: 50px;
}

/* Responsive */
@media (max-width:900px) {
  .header-center {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    cursor: pointer;
  }
  .mobile-page-title {
    display: block;
    font-size: 18px;
    font-weight: 600;
    flex: 1;
    color: var(--header-text-light);
    transition: opacity 0.5s ease;
  }
  .nav-toggle {
    display: block;
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: var(--header-text-light);
    position: relative;
  }
  .nav-toggle .icon-menu {
    display: block;
    transition: opacity 0.5s ease;
  }
  .nav-toggle.open .icon-menu {
    opacity: 0;
  }
  .nav-toggle .icon-close {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  .nav-toggle.open .icon-close {
    opacity: 1;
  }
  .nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: var(--header-light);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius);
    overflow: hidden;
    flex-direction: column;
    z-index: 1000;

    /* collapsed */
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      max-height 0.5s ease,
      opacity 0.5s ease,
      transform 0.5s ease;
  }
  .nav.open {
    max-height: 600px;      
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav a {
    padding: 12px 14px;
    display: block;
    font-weight: 600;
    border-radius: 0;
  }
  .mobile-page-title.dimmed {
    opacity: 0.3;
  }

  .footer-top-card {
    margin: auto;
    width: 100%;
  }

  .hero{
    flex-direction:column
  }

  .featured, .section-projects {
    flex-direction: column;
  }
  .featured .right, .section-projects .right {
    max-width:100%;
  }
  .slider-arrow {
    display: none;
  }
  .arrow-mobile {
    display: block;
  }
  .cta-projects {   
    margin: 16px 0px;
  }

  .featured-example{
    flex-direction: column;
  }
  .featured-example .right{
    max-width:100%;
  }

  .about {
    flex-direction: column;
    align-items: center;
  }
  .about-text {
    width: 100%;
  }
  .about-img {
    width: 100%;
  }
  .about-img.left {
    display: none;
  }
  .about-img.mobile {
    display: block;
  }

  .form-grid {
    grid-template-columns:1fr
  }

  .container {
    padding: 56px 28px;
  }

  .cta-parent {
    width: 100%;
  }
  .cta {
    width: 100%;
    text-align: center;
  }

  .header {
    padding-top: 0;
    padding-bottom: 0;
  }

  .hero.content {
    flex-direction: column;
  }
  .hero-text {
    text-align: center;
  }
  .hero-links {
    display: block;
    text-align: left;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 0px;
  }
  .hero-img {
    margin-top: 10px;
  }
  
  .home-services.content h1, .home-services.content p {
    max-width: 100%;
  }

  .home-about.content {
    flex-direction: column;
  }
  .home-about-img {
    margin-top: 10px;
  }

  .home-featured.content h1, .home-featured.content p {
    max-width: 100%;
  }

  .section-cta.content {
    max-width: 100%;
  }
  .section-cta-buttons {
    margin: 30px 0px 0px;
    flex-direction: column;
    gap: 20px;
  }
  .section-cta-checks {
    flex-direction: column;
    gap: 30px;
  }

  .img-hide {
    display: none;
  }

  .hero-filters .cta-parent {
    width: auto;
    margin: 0;
  }
  .hero-filters .cta-parent .cta {
    width: auto;
  }
  .project-card {
    text-align: left;
  }
  
  .contact-cards.cards {
    align-items: center;
  }
}


.hero-logo {
  width: 100%;
  height: auto;
  display: none;
  border-radius: var(--radius);
}

/* Even smaller screens */
@media (max-width:500px) {
  .footer-top {
    grid-template-columns:repeat(auto-fit, minmax(262px,1fr));
  }
  .header-logo {
    display: none;
  }
  :root[data-theme="dark"] .header-logo.visual-dark {
    display: none;
  }
  .header-logo.small.light {
    display: block;
  }
  .hero-logo.light {
    display: block;
  }
  :root[data-theme="dark"] .light {
    display: none;
  }
  :root[data-theme="dark"] .dark {
    display: block;
  }
}

@media (max-width: 430px) {
  .header .header-bar {
    gap: 6px;
  }
  .header-center {
    gap: 0px;
  }
  .header-right {
    gap: 0px;
  }
  .language-toggle {
    display: block;
  }
  .language-toggle.active {
    transform: rotate(180deg);
  }
  .header .language-alt {
    display: none;
  }
  .header .language-alt.active {
    display: block;
  }
  .header-right .language {
    display: none;
  }

  .contact-cards .card {
    min-width: 250px;
    max-width: 250px;
  }
  .contact-card-text .lead {
    font-size: 11px;
  }
}

/* Only enable hover effects on mouse devices */
@media (hover: hover) and (pointer: fine) {
  
  p.clickable:hover a {
    color: var(--accent-darker);
  }

  .nav a:hover {
    color:var(--header-text-light);
    background:var(--accent-mute);
  }
  .nav .nav-current:hover {
    color:var(--header-text-light);
    background:var(--accent-mute);
  }

  .footer-top-card p.clickable:hover a {
    color: var(--accent);
  }

  .card:hover {
    border-color: var(--accent);
  }
  /* .card.card-dark:hover {
    border-color: var(--text-on-accent);
  } */
  .card:hover .card-icon {
    transform: scale(1.1);
  }

  .cta.hero:hover {
    background: var(--bg-light-darker);
    color: var(--text-light);
  }
  .cta.main:hover {
    background: var(--accent-darker);
    color: var(--text-on-accent);
    transform: translateY(-10%);
  }
  .cta.bg.main:hover {
    background: var(--muted-dark);
    color: var(--accent-darker);
    transform: translateY(-10%);
  }
  .cta.border:hover {
    background: var(--text-dark);
    color: var(--accent-darker);
  }
  .cta.accent:hover {
    background: var(--accent-dark-darker);
    color: var(--bg-light);
  }

  .hero-img img:hover {
    transform: scale(1.1);
  }

  .slider-arrow:hover {
    background: var(--accent-mute);
    color: var(--text-light);
  }
  .featured-slider:hover .img-clickable {
    transform: scale(1.1);
  }
  .slider-dots button:hover {
    transform: scale(1.1);
  }

  .hero-filters .active:hover a {
    background: var(--accent-darker);
  }
  .project-tag.card:hover {
    border-color: var(--bg-light-darker);
  }
  .card:hover .project-card-img img {
    transform: scale(1.1);
  }
  .demo-card.card.gray:hover .icon i {
    transform: scale(1.5);
  }
  .demo-card.card.gray .icon:hover .icon-exp {
    display:block;
  }
  .demo-card.card.gray .icon:hover i {
    transform: translateY(-40px) scale(1.5);
  }

  .about-img img:hover {
    transform: scale(1.1);
  }

}

/* Dark theme */
:root[data-theme="dark"] {
  --bg-light: var(--bg-dark);
  --bg-light-darker: var(--bg-dark-lighter);
  --header-light: var(--header-dark);
  --header-text-light: var(--header-text-dark);
  --footer-light: var(--footer-dark);
  --footer-text-light: var(--footer-text-dark);
  --toggle-light: var(--toggle-dark);
  --card-light: var(--card-dark);
  --text-light: var(--text-dark);
  --muted-light: var(--muted-dark);
  --accent: var(--accent-dark);
  --accent-darker: var(--accent-dark-darker);
  --accent-mute: var(--accent-dark-mute);
  --text-on-accent: var(--text-on-accent-dark);
  --gradient-accent: var(--gradient-accent-dark);
}

:root[data-theme="dark"] .visual-light {
  display: none;
}

:root[data-theme="dark"] .visual-dark {
  display: block;
}