/*
Theme Name: digitalmagicians-theme
Author: DigitalMagicians Studios
Description: A starter theme for custom development
Version: 1.0
*/

/* Hide the top site header and horizontal line */
header.site-header,
header,
hr {
  display: none !important;
}

#header,
#headerimg,
#headerimg h1,
#headerimg a,
hr {
  display: none !important;
} 

/* --- Navigation Menu Styles --- */
.main-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.main-nav li {
  display: inline;
}

.main-nav a {
  display: inline-block;
  padding: 10px 15px;
  text-decoration: none;
  color: white;
  background-color: #333;
  border-radius: 5px;
  transition: background 0.3s ease, color 0.3s ease;
}

.main-nav a:hover {
  background-color: #555;
}

/* --- Particle Background --- */
#hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Content Above Particles --- */
#site-content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  color: white;
  transition: color 0.5s ease;
}

/* --- Section Layout --- */
.section {
  min-height: 100vh;
  padding: 100px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: transparent !important;
  transition: background-color 0.8s ease, color 0.5s ease;
  text-align: center;
}

/* --- Scroll-Based Fade-In Animation --- */
.section h2,
.section p {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible h2,
.section.visible p {
  opacity: 1;
  transform: translateY(0);
}

/* --- Hero Text --- */
.hero-text {
  position: relative;
  z-index: 1;
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
}

/* Make ALL tsParticles canvases ignore clicks */
#hero-bg canvas,
#dot-background canvas,
#footer-background canvas,
canvas[data-generated="true"] {
  pointer-events: none !important;
}

/* Keep particle containers behind content */
#hero-bg,
#dot-background,
#footer-background {
  z-index: 0 !important;
}

/* Ensure your actual content sits above */
main, header, .page-wrapper, .dev-content, .print-hero-section {
  position: relative;
  z-index: 2;
}

/* --- Light Mode Toggle --- */
body.light-mode {
  background-color: white;
  color: black;
}

body.light-mode .main-nav a {
  color: black;
  background-color: #eee;
}

body.light-mode .main-nav a:hover {
  background-color: #ccc;
}

body.light-mode #chat-output {
  background-color: #f8f8f8;
  color: #000;
}

/* --- Smooth Transition --- */
body {
  margin: 0;
  transition: background-color 0.8s ease, color 0.5s ease;
}

/* --- AI Navigation Assistant --- */
#ai-assistant {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 40px 20px 0;
  margin-top: 200px;
}

.ai-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 640px;
  background: #1e1e1e;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-sizing: border-box;
}

#ai-output {
  display: none;
  width: 100%;
  max-width: 600px;
  background: #121212;
  color: #f1f1f1;
  padding: 14px 18px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-size: 1rem;
  line-height: 1.5;
  box-sizing: border-box;
  text-align: left;
}

#ai-form {
  display: flex;
  align-items: center;
  background: #1f1f1f;
  border: 1px solid #333;
  border-radius: 999px;
  padding: 4px 8px;
  width: 100%;
  max-width: 600px;
  box-sizing: border-box;
}

#ai-input {
  flex: 1;
  height: 44px;
  padding: 0 16px;
  background: #2a2a2a;
  color: white;
  border: 1px solid #444;
  border-radius: 999px;
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
}

#ai-input::placeholder {
  color: #aaa;
}

#ai-form button {
  width: 44px;
  height: 44px;
  background: #007bff;
  border: none;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  cursor: pointer;
  padding: 0;
}

#ai-form button:hover {
  background: #0056b3;
}

#ai-form svg {
  display: block;
}

#ai-output a {
  color: #00aaff;
  text-decoration: underline;
  transition: color 0.2s;
}

#ai-output a:hover {
  color: #ffaa00;
}

#ai-bubble {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #f04e30;
  color: white;
  font-size: 32px;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  z-index: 9999;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease;
  pointer-events: none;
}

#ai-bubble.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

#ai-bubble:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}

.highlight {
  outline: 3px solid #007bff;
  outline-offset: 4px;
  transition: outline 0.3s ease;
}

.section h2 {
  font-size: 3rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}

#design3d h2,
#design3d p,
#news h2,
#news p,
#contact h2,
#contact p {
  color: black;
}

/* Contact Form */
.styled-contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: transparent;
  color: white;
  font-family: 'Helvetica Neue', sans-serif;
}

.styled-contact-form input,
.styled-contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid white;
  padding: 12px 0;
  color: white;
  font-size: 1.1rem;
  width: 100%;
  outline: none;
}

.styled-contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.styled-contact-form input::placeholder,
.styled-contact-form textarea::placeholder {
  color: white;
  opacity: 0.6;
}

.privacy-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

.privacy-checkbox input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid black;
    background-color: transparent;
    cursor: pointer;
    margin: 0;
    padding: 0;
    display: inline-block;
    vertical-align: middle;
    border-radius: 0;
    position: relative;
    box-sizing: border-box;
  }
  
  .privacy-checkbox input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background-color: black;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }

.privacy-checkbox a:hover {
  color: #ff694a;
}

.styled-contact-form button {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: white;
  font-size: 1.2rem;
  border: 1px solid white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 20px auto 0 auto;
}

#contact-form button:hover {
  background-color: black;
}

.custom-cursor {
  pointer-events: none;
  position: fixed;
  width: 100vw;
  height: 100vh;
  z-index: 999999 !important;
}

/* Dot */
.cursor-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Ring */
.cursor-ring {
  width: 28px;
  height: 28px;
  border: 2px solid white;
  border-radius: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

body.light-mode .cursor-dot {
  background-color: black;
}

body.light-mode .cursor-ring {
  border-color: black;
}

body.white-cursor .cursor-dot {
  background-color: white;
}

body.white-cursor .cursor-ring {
  border-color: white;
}

/* Cursor detection zones */
.cursor-zone-light {
  background: white !important;
  color: black !important;
}

.cursor-zone-dark {
  background: black !important;
  color: white !important;
}

/* Footer */
#site-footer {
  background: #000;
  color: #fff;
  padding: 60px 40px;
  font-family: 'Roboto', sans-serif;
  position: relative;
  z-index: 999997;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.footer-col {
  flex: 1 1 280px;
  min-width: 220px;
}

.footer-logo {
  max-width: 300px;
  height: auto;
  margin-bottom: 10px;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #f04e30;
}

.footer-col p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
}

.footer-col a:hover {
  color: #f04e30;
}

.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.social-icons a {
  color: #ccc;
  font-size: 1.1rem;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #f04e30;
}

/* ====================
   Footer Styles
   ==================== */

#site-footer {
  background: #000;
  color: #fff;
  padding: 60px 40px 30px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-cols {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.footer-col {
  flex: 1 1 300px;
}

.footer-logo {
  height: 75px;
  margin-bottom: 10px;
}

.footer-tagline {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 20px;
}

.footer-col h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #ffffff;
}

.footer-col p,
.footer-col a {
  font-size: 0.95rem;
  color: #ccc;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.social-icons a {
  font-size: 18px;
  color: #ccc;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  border-top: 1px solid #333;
  padding-top: 30px;
  font-size: 0.85rem;
  color: #999;
}

/* Chat Bubble Position */
#ai-bubble {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #00ffe7;
  color: black;
  font-size: 20px;
  padding: 12px 16px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 0 10px #00ffe7aa;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .dev-footer-zone {
    padding: 40px 10px;
  }

  #ai-bubble {
    bottom: 16px;
    right: 16px;
    font-size: 18px;
    padding: 10px 14px;
  }
}

#site-footer a:hover {
color: #00ff00 !important; /* Bright green */
}
  
#site-footer .social-icons a:hover {
  color: #00ff00 !important;
}

body.light-mode .styled-contact-form input,
body.light-mode .styled-contact-form textarea {
  color: black;
  border-bottom: 1px solid black;
  background: transparent;
}

body.light-mode .styled-contact-form input::placeholder,
body.light-mode .styled-contact-form textarea::placeholder {
  color: black;
  opacity: 0.5;
}

body.light-mode .styled-contact-form button {
  color: black;
  border-color: black;
}

body.light-mode .styled-contact-form button:hover {
  background-color: black;
  color: white;
}

body.light-mode .privacy-checkbox {
  color: black;
}

body.light-mode .privacy-checkbox input[type="checkbox"] {
  accent-color: black;
}

#dot-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
  }
  
  .dev-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding-top: 150px;
    color: white;
  }

 /* Ensure footer sticks to bottom */
.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .page-wrapper .dev-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    text-align: center;
  }

  /* Maintain layout integrity */
  .page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .page-wrapper .dev-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px;
    text-align: center;
  }

  .cursor-dot {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: background-color 0.3s ease;
  }
  
  .cursor-ring {
    position: fixed;
    width: 28px;
    height: 28px;
    border: 2px solid white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    transition: border-color 0.3s ease;
  }
  
  body[data-cursor="white"] .cursor-dot {
    background-color: white;
  }
  
  body[data-cursor="white"] .cursor-ring {
    border-color: white;
  }
  
  body[data-cursor="black"] .cursor-dot {
    background-color: black;
  }
  
  body[data-cursor="black"] .cursor-ring {
    border-color: black;
  }


/* Screen spread animation starting positions */
.screen1 { transform: translateX(-50%) translateY(-20px) scale(0.92); }
.screen2 { transform: translateX(-50%) translateY(0px) scale(0.92); }
.screen3 { transform: translateX(-50%) translateY(20px) scale(0.92); }
.screen4 { transform: translateX(-50%) translateY(40px) scale(0.92); }
.screen5 { transform: translateX(-50%) translateY(60px) scale(0.92); }

/* Keep center alignment */
.stackt-parallax {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.print-upload-section {
  background: black;
  color: white;
  padding: 60px 30px;
  border-radius: 16px;
  max-width: 800px;
  margin: 60px auto;
  text-align: center;
}

.print-upload-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #00ffe7;
}

.print-upload-section input,
.print-upload-section select {
  padding: 10px;
  width: 80%;
  margin: 10px 0;
  border-radius: 5px;
  border: none;
}

.print-upload-section button {
  padding: 12px 20px;
  background: #00ffe7;
  color: black;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

#print-upload-section button:hover {
  background: #00d6c5;
}

/* FIX: Ensure tsParticles is ABOVE the white page background */
#dot-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;   /* Lift above background */
    pointer-events: none;
}

/* Lower the page wrapper so it doesn’t cover particles */
.dev-page {
    position: relative;
    z-index: 1;
    background: transparent !important; /* Remove the white wall */
}