
/* Scope box-sizing to the hero so global layout remains untouched */

/* Logo wrapper for better structure */

.logo-container,
.logo-container * {
    box-sizing: border-box;
}

.logo-container {
    position: relative;
    padding: 20px 20px 4px;     /* less bottom space below tagline */
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 100%;
    max-width: 560px;              /* matches original */
    margin: 0 auto;
    /* no explicit min-height → let content decide */
}

/* ───────── LAYOUT / RESTORE DEMO LOOK ───────── */
.hero-wrapper{
  /* inherit whatever bg the rest of the site uses */
  background:inherit;
  display:flex;flex-direction:column;
  align-items:center;
  padding:0 0 0px;            /* tighter bottom spacing */
  overflow:visible;             /* let bubbles float */
}

/* coloured spinning disc */
.blob{
  position:absolute;
  width:160px;height:160px;
  top:70%;left:85%;
  transform:translate(-50%,-50%);
  background:radial-gradient(circle at 30% 30%,#ff0066 0%,rgba(255,0,102,0) 70%);
  filter:blur(14px);
  animation:blob 25s linear infinite;
  pointer-events:none;
}
@keyframes blob{
  to{transform:translate(-50%,-50%) rotate(360deg);}
}

.circuit-bg {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: 
        repeating-linear-gradient(0deg, #00ffff 0, #00ffff 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(90deg, #00ffff 0, #00ffff 1px, transparent 1px, transparent 40px);
    animation: circuit-flow 20s linear infinite;
}

@keyframes circuit-flow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

.glitch-container {
    position: relative;
    filter: drop-shadow(0 0 25px rgba(0, 255, 255, 0.4));
    text-align: center;
}

/* Main logo wrapper */
.main-logo {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 900;
    font-size: 5rem;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
    text-align: center;
}

/* IT with animated gradient and stroke */
.logo-it {
    background: linear-gradient(45deg, #00ffff, #ff0066, #ffff00, #00ffff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
    display: inline-block;
    -webkit-text-stroke: 0.3px #00ffff;
}

/* HELP with animated gradient, NO stroke to avoid P artifacts */
.logo-help {
    background: linear-gradient(45deg, #00ffff, #ff0066, #ffff00, #00ffff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    animation: gradient-shift 3s ease infinite;
    display: inline-block;
    filter: drop-shadow(0 0 0.5px #00ffff);
}

/* Red plus sign - very subtle outline */
.logo-plus {
    color: #ff0066;
    display: inline-block;
    margin: 0 0.02em;
    text-shadow: 
        -0.3px -0.3px 0 #00ffff,  
         0.3px -0.3px 0 #00ffff,
        -0.3px  0.3px 0 #00ffff,
         0.3px  0.3px 0 #00ffff;
}

@keyframes gradient-shift {
    0% { 
        background-position: 0% 50%;
    }
    50% { 
        background-position: 100% 50%;
    }
    100% { 
        background-position: 0% 50%;
    }
}

/* Glitch effect now handled with pseudo-elements */
.main-logo::before,
.main-logo::after {
    content: 'IT+HELP';
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, #ff0066, #00ffff, #ffff00, #ff0066);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    pointer-events: none;
    animation: glitch 2s infinite;
    opacity: 0;
}

.main-logo::after {
    animation-delay: .15s;
}

@keyframes glitch {
    0%, 100% { 
        opacity: 0;
        transform: translate(0);
    }
    20% {
        opacity: 1;
        transform: translate(-2px, 2px);
    }
    21% {
        opacity: 0;
    }
    50% {
        opacity: 0;
    }
    52% {
        opacity: 1;
        transform: translate(2px, -2px);
    }
    53% {
        opacity: 0;
    }
}

.location {
    font-size: 2.5rem;
    margin-top: -10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    font-weight: 600;
    background: linear-gradient(90deg, #ffffff, #00ffff, #ffffff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
    -webkit-text-stroke: 0.3px #00ffff;
}

@keyframes shine {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

.tagline {
    margin-top: 8px;          /* closer to logo */
    text-align: center;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    position: relative;
    font-family: ui-monospace, 'SF Mono', 'Monaco', 'Cascadia Code', 'Roboto Mono', 'Courier New', monospace;
}

.tagline-text {
    display: inline-block; /* pill snaps to content width */
    white-space:nowrap;
    padding: 10px 20px;
    border: 2px solid transparent;
    background: linear-gradient(#0a0a0a, #0a0a0a) padding-box,
                linear-gradient(90deg, #00ffff, #ff0066, #ffff00) border-box;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

/* colour-scheme specific pill styling */
@media (prefers-color-scheme:light){
  .tagline-text{
    color:#000;
    background:linear-gradient(#ffffff,#ffffff) padding-box,
               linear-gradient(90deg,#00ffff,#ff0066,#ffff00) border-box;
  }
}
@media (prefers-color-scheme:dark){
  .tagline-text{
    color:#fff;
    background:linear-gradient(#000000,#000000) padding-box,
               linear-gradient(90deg,#00ffff,#ff0066,#ffff00) border-box;
  }
}
html.switch .tagline-text{
  color:#000;
  background:linear-gradient(#ffffff,#ffffff) padding-box,
             linear-gradient(90deg,#00ffff,#ff0066,#ffff00) border-box;
}
html:not(.switch) .tagline-text{
  color:#fff;
  background:linear-gradient(#000000,#000000) padding-box,
             linear-gradient(90deg,#00ffff,#ff0066,#ffff00) border-box;
}

.tagline-text::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(90deg, #00ffff, #ff0066, #ffff00);
    border-radius: 30px;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
    filter: blur(10px);
}

.logo-container:hover .tagline-text::before {
    opacity: 0.7;
}

.highlight {
    color: #00ffff;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* particles cover full logo box */
.tech-particles{
  position:absolute;
  inset:0;
  pointer-events:none;
}

@keyframes float-up {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0);
    }
    20% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0);
    }
}

.logo-container:hover .logo-it,
.logo-container:hover .logo-help {
    animation-duration: 0.8s;
}

.logo-container:hover .glitch-container {
    filter: drop-shadow(0 0 35px rgba(0, 255, 255, 0.5));
}

.hex-decoration {
    position: absolute;
    width: 60px;
    height: 60px;
    opacity: 0.3;
    animation: rotate 10s linear infinite;
}

.hex-decoration:nth-child(1) {
    top: 20px;
    left: 20px;
    animation-duration: 15s;
}

.hex-decoration:nth-child(2) {
    bottom: 20px;
    right: 20px;
    animation-duration: 20s;
    animation-direction: reverse;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hex {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #00ffff, #ff0066);
    -webkit-clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}

/* Special handling for Apple devices */
@supports (font: -apple-system-body) {
    .main-logo, .logo-it, .logo-help, .logo-plus {
        font-weight: 800;
    }
    .main-logo {
        letter-spacing: -0.03em;
    }
}

/* ↓ responsive font-sizes stop word-wrap on mobile */
@media(max-width:640px){
  .hero-wrapper{padding:0 0 0px;}       /* flush to top, even tighter bottom */

  /* bigger, bolder */
  .main-logo {font-size:20vw;}
  .location  {font-size:7vw;}
  .tagline   {font-size:4.6vw;}

  /* compensate for smaller container padding */
  .tagline-text{padding:8px 16px;}
}
