/* 
   ==========================================================================
   conSTRUCT Engineering Consultants - Standalone CSS
   ==========================================================================
*/

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #121212;
  color: #f8fafc;
  overflow: hidden; /* Prevent vertical and horizontal scroll */
  height: 100vh;
  width: 100vw;
}

/* Fullscreen Slideshow */
#slideshow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05) translateX(100%);
  transition: transform 1.5s cubic-bezier(0.65, 0, 0.35, 1), 
              opacity 1.5s ease, 
              scale 6s ease;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  transform: scale(1) translateX(0);
  z-index: 2;
}

.slide.prev {
  opacity: 0;
  transform: scale(1.05) translateX(-100%);
  z-index: 1;
}

/* Dark Overlay for contrast */
#overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.8) 100%);
  z-index: 3;
}

/* Top Horizontal Navigation */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  z-index: 105;
}

.logo-container {
  display: flex;
  align-items: center;
  height: 48px; /* Restrict height to contain SVG nicely */
}

.logo-container svg {
  height: 100%;
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 2.5rem;
}

nav a {
  color: rgba(248, 250, 252, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
  position: relative;
  padding-bottom: 0.25rem;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #FEC629;
  transition: width 0.3s ease;
}

nav a:hover, nav a.active {
  color: #FEC629;
}

nav a:hover::after, nav a.active::after {
  width: 100%;
}

/* Hero Text Container */
.hero-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  text-align: center;
  width: 90%;
  max-width: 800px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 4rem 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.02em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.prefix {
  color: #f8fafc;
  text-transform: lowercase;
}

.mid-dot {
  color: #FEC629;
  margin: 0 0.1em;
}

/* Slot Machine Mask Window */
.roll-window {
  display: inline-block;
  height: 1.2em;
  overflow: visible !important;
  vertical-align: bottom;
  position: relative;
  min-width: 0 !important;
  text-align: left;
}

/* Rolling Text Element */
#roll-text {
  display: inline-flex !important;
  color: #FEC629; /* Safety Yellow */
  text-transform: lowercase;
  cursor: pointer;
  vertical-align: bottom;
  height: 1.2em;
  line-height: 1.2em;
  overflow: hidden;
}

/* Individual character column wrapper */
.char-column {
  display: inline-block;
  height: 1.2em;
  line-height: 1.2em;
  overflow: hidden;
  vertical-align: bottom;
  position: relative;
  text-align: center;
  will-change: width, opacity;
}

/* The vertical reel of characters */
.char-reel-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  will-change: transform;
}

/* Individual character within the reel */
.char-reel-inner span {
  display: block;
  height: 1.2em;
  line-height: 1.2em;
  text-align: center;
  min-width: 0.35em;
}

/* Subdeck styling */
.hero-subdeck {
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  color: #cbd5e1; /* Light Slate */
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
  transition: opacity 0.3s ease;
  min-height: 3.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Slide-in Panels */
.panel {
  position: fixed;
  top: 100px;
  right: -550px;
  width: 500px;
  height: calc(100vh - 120px);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
  z-index: 100;
  transition: right 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6);
  padding: 3rem 3rem 3rem 3rem;
  display: flex;
  flex-direction: column;
  color: #f8fafc;
}

.panel.open {
  right: 0;
}

.panel-close {
  position: absolute;
  top: 2rem;
  right: 3rem;
  background: none;
  border: none;
  color: rgba(248, 250, 252, 0.5);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.3s ease;
}

.panel-close:hover {
  color: #FEC629;
  transform: rotate(90deg);
}

.panel-content {
  overflow-y: auto;
  height: 100%;
  padding-right: 0.5rem;
}

/* Slim scrollbars */
.panel-content::-webkit-scrollbar {
  width: 6px;
}
.panel-content::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.1);
}
.panel-content::-webkit-scrollbar-thumb {
  background: rgba(254, 198, 41, 0.3);
  border-radius: 3px;
}
.panel-content::-webkit-scrollbar-thumb:hover {
  background: #FEC629;
}

.panel h2 {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin-bottom: 2rem;
  border-bottom: 2px solid #FEC629;
  padding-bottom: 0.75rem;
  color: #f8fafc;
}

/* Content Lists & Text formatting */
.service-item, .project-item {
  margin-bottom: 1.8rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-item:hover, .project-item:hover {
  transform: translateY(-2px);
  border-color: rgba(254, 198, 41, 0.4);
}

.service-item h3, .project-item h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FEC629;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.service-item p, .project-item p {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
}

.project-image-placeholder {
  width: 100%;
  height: 150px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  margin-top: 0.75rem;
  border: 1px solid rgba(255,255,255,0.05);
}

.about-text {
  font-size: 0.95rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.area-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.area-tag {
  background: rgba(254, 198, 41, 0.1);
  border: 1px solid rgba(254, 198, 41, 0.2);
  color: #FEC629;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* Contact Form & Contact Details */
.contact-details {
  margin-bottom: 2rem;
  background: rgba(254, 198, 41, 0.05);
  border: 1px dashed rgba(254, 198, 41, 0.3);
  padding: 1.25rem;
  border-radius: 12px;
}

.contact-detail-row {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.contact-detail-row:last-child {
  margin-bottom: 0;
}

.contact-detail-row strong {
  color: #FEC629;
  margin-right: 0.5rem;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  display: inline-block;
  width: 75px;
}

.contact-detail-row a {
  color: #f8fafc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-detail-row a:hover {
  color: #FEC629;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.form-group input, .form-group select, .form-group textarea {
  font-family: 'Montserrat', sans-serif;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: #f8fafc;
  font-size: 0.9rem;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: #FEC629;
  background: rgba(255, 255, 255, 0.08);
}

.form-group select option {
  background-color: #0f172a;
  color: #f8fafc;
}

/* Captcha Styling */
.captcha-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#captcha-canvas {
  background-color: #1e293b;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: block;
}

.refresh-captcha-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-size: 1.1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  width: 42px;
}

.refresh-captcha-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #FEC629;
  border-color: #FEC629;
}

#captcha-input {
  flex: 1;
}

.contact-form button {
  font-family: 'Montserrat', sans-serif;
  background-color: #FEC629;
  color: #121212;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  margin-top: 0.5rem;
}

.contact-form button:hover {
  background-color: #f59e0b;
  box-shadow: 0 0 15px rgba(254, 198, 41, 0.4);
}

.contact-form button:active {
  transform: scale(0.98);
}

/* Screen Overlay Blur when Panel is Open */
#blur-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99;
  background: rgba(0,0,0,0.2);
  backdrop-filter: blur(0px);
  pointer-events: none;
  transition: backdrop-filter 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}

#blur-screen.active {
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 1;
  pointer-events: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  header {
    padding: 1.5rem 2rem;
    flex-direction: column;
    gap: 1rem;
  }
  nav {
    gap: 1.25rem;
  }
  .panel {
    width: 100%;
    right: -100%;
    top: 0;
    height: 100vh;
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    padding: 6rem 2rem 2rem 2rem;
  }
  .hero-container {
    padding: 2.5rem 1.5rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
}

/* Site Footer */
.site-footer {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-size: 0.8rem;
  color: rgba(248, 250, 252, 0.45);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-align: center;
  pointer-events: none;
  width: 90%;
  transition: opacity 0.5s ease;
}
@media (max-width: 768px) {
  .site-footer {
    font-size: 0.7rem;
    bottom: 1rem;
  }
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 420px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.5rem;
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
}

.cookie-banner.hidden {
  transform: translateY(100px);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner h3 {
  font-size: 1.1rem;
  color: #FEC629;
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cookie-banner p {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Common Cookie Button styles */
.cookie-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.cookie-btn.primary {
  background-color: #FEC629;
  color: #121212;
}

.cookie-btn.primary:hover {
  background-color: #f59e0b;
}

.cookie-btn.secondary {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
}

.cookie-btn.secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.cookie-btn.link {
  background: none;
  color: #94a3b8;
  padding: 0.6rem 0.5rem;
}

.cookie-btn.link:hover {
  color: #f8fafc;
}

/* Privacy Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1100;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  width: 90%;
  max-width: 550px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.8rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #FEC629;
}

.modal h2 {
  font-size: 1.5rem;
  color: #f8fafc;
  margin-bottom: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  border-bottom: 2px solid #FEC629;
  padding-bottom: 0.5rem;
}

.modal-intro {
  font-size: 0.85rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.setting-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  gap: 1rem;
}

.setting-info {
  flex: 1;
}

.setting-info h4 {
  font-size: 0.95rem;
  color: #FEC629;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.setting-info p {
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.4;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.5rem;
}

/* Toggle Switch Styling */
.switch-container {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch-container input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: .3s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #94a3b8;
  transition: .3s;
  border-radius: 50%;
}

.switch-container input:checked + .slider {
  background-color: rgba(254, 198, 41, 0.2);
  border-color: #FEC629;
}

.switch-container input:checked + .slider:before {
  transform: translateX(20px);
  background-color: #FEC629;
}

/* Analytics Preview Box */
.analytics-preview-box {
  margin-top: 1.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(254, 198, 41, 0.2);
  border-radius: 12px;
  padding: 1rem;
}

.analytics-preview-box h4 {
  font-size: 0.8rem;
  color: #FEC629;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

#analytics-status-text {
  font-family: monospace;
  font-size: 0.75rem;
  color: #cbd5e1;
  white-space: pre-wrap;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    width: auto;
    bottom: 1rem;
  }
}
