* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

body {
  font-family: 'Ubuntu Mono', monospace;
  background: transparent;
  color: #fff;
  position: relative;
}

@keyframes spin-conic {
  0% {
    transform: scale(1.05) rotate(0deg);
  }
  100% {
    transform: scale(1.05) rotate(360deg);
  }
}

/* Navbar styling */
.navbar {
  min-width: 320px;
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.3s ease;
  }

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Adjust spacing between logo and title */
  white-space: nowrap;
}

.nav-title {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  font-weight: bold;
  font-size: 1.5rem;
  color: #fff;
  pointer-events: none;
  white-space: nowrap;
}

.nav-title.visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-title.hidden {
  opacity: 0;
  transform: translateY(-10px);
}

.nav-title.centered {
  text-align: center;
}

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  min-width: 200px;
}

nav a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
  padding: 0.5rem 0rem;
  border-radius: 4px;
}

nav a:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}

/* Hero section */
.hero {
  display: flex;
  height: 80vh;
  margin-top: 40px;
  min-height: 90vh;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  animation: fadeInHero 0.5s ease-in 0.5s forwards;
  padding: 0 1rem;
  position: relative;
}

.hero h1, .hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  position: relative;
  animation: zoomIn 1s ease forwards;
  color: #fff;
  
}

.hero p, .subtitle {
  font-size: 1.3rem;
  color: #ddd;
  margin-bottom: 1rem;
  max-width: 800px;
  line-height: 1.6;
}

.hero-content {
  margin-top: 0.5rem;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 1rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

section {
  min-height: auto; /* or remove if not needed */
  padding: 2rem 1rem 1rem;
}

.about-section, .services-section, .contact-section {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 1rem;
  padding-bottom: 4rem;
}

.about-section h2, .services-section h2, .contact-section h2 {
  font-size: 3.2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #fff;
}

.about-section p, .contact-section p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #ffffff;
}

/* Services grid */
.services {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  width: 100%;
}


/* Animated stacking scroll effect for cards */
@keyframes stack-up {
  0% {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    z-index: 1;
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    z-index: 10;
  }
}

.card {
  background-color: #111;
  color: #fff;
  border-radius: 20px;
  overflow: hidden;
  padding: 2rem;
  position: relative;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  box-shadow: none !important;
}

/* Rectangular gradient border using a pseudo-element */
.card::before { }

.card h3, .card p, .card a {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.card h3 {
  margin-bottom: 1rem;
  color: #fff;
  font-size: 1.3rem;
}

.card p {
  margin-bottom: 1.5rem;
  color: #ddd;
  line-height: 1.6;
}

/* Learn More links are always white */
.card a {
  color: #ffffff !important;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}
.card a:hover {
  color: #764ba2 !important;
}

/* Overlay background when a card is expanded */
.card-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.05); /* 5% opacity */
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.5s ease, opacity 0.5s ease;
  opacity: 1;
}

.card-overlay.hide {
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Expanded card styles */
.card.expanded {
  position: fixed !important;
  width: 80vw !important;
  max-width: 800px;
  height: 80vh !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) scale(1) !important;
  transform-origin: center center !important;
  background: #191e22;
  z-index: 2001;
  opacity: 1;
  overflow-y: auto;
  box-shadow: 0 4px 64px 0 rgba(40,80,160,0.14);
  transition: transform 0.5s ease, width 0.s ease, height 0.5s ease, top 0.5s ease, left 0.5s ease;
}

.card.expanded .read-less {
  display: block;
  margin-top: 2rem;
  background: none;
  color: #764ba2;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
}

.card.expanded.scaled {
  transform: translate(-50%, -50%) scale(1.03) !important;
}

.card.expanded a {
  display: none;
}
/* Hide scroll on body when modal is open */
body.modal-open {
  overflow: hidden;
}


.contact-section a {
  color: #667eea;
  text-decoration: none;
}

.contact-section a:hover {
  color: #a000c4;
}

/* Hero button with pill-shaped, 1px gradient border */
.hero-btn {
  position: relative;
  display: inline-block;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.6em 1.4em;
  border-radius: 2em;
  background: #111;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  z-index: 1;
  overflow: hidden;
  transition: transform 0.2s;
}

.hero-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: none;
  z-index: -1;
  opacity: 0;
  border: 1px solid transparent;
  transition: opacity 0.3s, box-shadow 0.2s;
}

.hero-btn:hover::before,
.hero-btn:focus::before {
  opacity: 1;
  border: 3px solid transparent;
  background:
    linear-gradient(#111, #111) padding-box,
    linear-gradient(90deg, #36c8c3, #c94bec) border-box;
}

.hero-btn:hover,
.hero-btn:focus {
  transform: scale(1.03);
  outline: none;
  box-shadow: 0 0 8px 2px #36c8c380, 0 0 12px 4px #c94bec55;
}

/* Animations */
@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes fadeInHero {
  to { opacity: 1; }
}

/* Responsive design */
@media (max-width: 768px) {
  .navbar {
    padding: 15px;
  }
  .nav-title {
    font-size: 1rem;
  }
  .nav-links {
    display: none;
  }
  .hero h1, .hero-title {
    font-size: 2rem;
  }
  .hero p, .subtitle {
    font-size: 1rem;
  }
  section {
    padding: 3rem 1rem 2rem;
  }
  .services {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero h1, .hero-title {
    font-size: 1.5rem;
  }
  .hero p, .subtitle {
    font-size: 0.9rem;
  }
  .card {
    padding: 1.5rem;
  }
}

/* Site logo styling */
.site-logo {
  height: 3rem;
  max-height: 64px;
  margin-right: 16px;
  vertical-align: middle;
  border-radius: 9px;
  width: auto;
  flex-shrink: 0;
  background: transparent;
}
@media (max-width: 600px) {
  .site-logo {
    height: 32px;
    margin-right: 8px;
  }
}

.hero-row {
  display: flex;
  align-items: center;
  justify-content: center; /* center as a row */
  gap: 0.0rem;             /* space between logo and title */
  margin-bottom: 1.5rem;   /* space below row */
}

.logo-image {
  height: 90px;
  margin-right: 3px;
  vertical-align: middle;
  border-radius: 8px;
  background: transparent;
}
@media (max-width: 600px) {
  .logo-image {
    height: 60px;
    margin-right: 8px;
  }
}


html {
  scroll-behavior: smooth;
  height: 100%;
  overflow-y: scroll;
}

body {
  height: 100%;
}

section, .hero {
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15); /* Softer overlay */
  z-index: 0;
  pointer-events: none;
}

/* Ensure card content appears above the overlay */
.card > * {
  position: relative;
  z-index: 1;
}

.read-more-icon img {
  width: 24px;
  height: 24px;
  filter: brightness(1.2) invert(1);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.read-more-icon:hover img {
  transform: scale(1.2);
  filter: brightness(1.6) invert(0.8);
}

/* Remove hover highlight from site-logo inside anchor */
a:has(.site-logo),
a:has(.site-logo):hover,
.site-logo:hover {
  background: none !important;
  box-shadow: none !important;
  outline: none !important;
  border: none !important;
  filter: none !important;
}

.site-footer {
  background-color: #0a0a0a;
  color: #ccc;
  padding: 2rem 1rem;
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 0.6rem;
}

.footer-col ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul li a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-logo {
  width: 100px;
  margin-bottom: 1rem;
  border-radius: 8px;
}

.footer-branding p {
  margin: 0.5rem 0 1rem;
  font-size: 0.85rem;
  color: #888;
}

.footer-socials a {
  display: inline-block;
  margin-right: 0.8rem;
  font-size: 1.2rem;
  color: #ccc;
  transition: color 0.3s;
}

.footer-socials a:hover {
  color: #36c8c3;
}

@media (max-width: 768px) {
  .site-footer {
    text-align: center;
  }
  .footer-socials {
    justify-content: center;
  }
}

.finisher-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -10;
}

.nav-title-wrapper {
  max-width: 1400px;    /* match your section container width */
  width: 100%;
  margin: 0 auto;
  flex-shrink: 0;
  padding-left: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;   /* match section heading padding if any */
}

.nav-title {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  font-weight: bold;
  font-size: 1.5rem;
  color: #fff;
  pointer-events: none;
}

.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3rem; height: 3rem;
  display: flex;
  align-items: center;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, #36c8c3, #c94bec);
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px); /* hidden below */
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0); /* slide up into place */
  pointer-events: auto;
}
.back-to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 0 18px #36c8c3, 0 0 22px #c94bec;
}

.card.visible {
  opacity: 1;
  transform: translateY(0);
}