/* ----------------------------------------------------------
   GLOBAL RESET
---------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    background: #000;
}

body {
    position: relative;
    z-index: 1;
    font-family: "Poppins", system-ui, sans-serif;
    color: #fff;
}

/* ----------------------------------------------------------
   FULLSCREEN VIDEO BACKGROUND
---------------------------------------------------------- */
.video-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
filter: brightness(0.45) contrast(1.1);
}






/* ----------------------------------------------------------
   INTRO LOGO + TAGLINE + HEADLINE
---------------------------------------------------------- */

.intro-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;      /* horizontally centre logo, tagline & headline together */
    justify-content: flex-start;
    padding-top: 8vh;        /* move the whole block up/down */
    z-index: 10;
    pointer-events: none;
}

.intro {
    width: 100%;
    text-align: center;
}

/* Logo */
.intro-logo {
    width: 260px;
    opacity: 0;
    animation:
        logoFade 10s ease forwards,
        logoPulse 1.4s ease-out forwards 10.2s;
}

/* Tagline */
.intro-tagline {
    font-size: 1.4rem;
    opacity: 0;
    margin-top: 1rem;
    animation: taglineFade 2.8s ease-out forwards;
    animation-delay: 1.6s;
}

/* Logo fade */
@keyframes logoFade {
    0%   { opacity: 0; transform: scale(0.96); }
    60%  { opacity: 1; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

/* Logo pulse */
@keyframes logoPulse {
    0%   { transform: scale(1);    filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
    50%  { transform: scale(1.06); filter: drop-shadow(0 0 18px rgba(255,255,255,0.35)); }
    100% { transform: scale(1);    filter: drop-shadow(0 0 0 rgba(255,255,255,0)); }
}

/* Tagline fade */
@keyframes taglineFade {
    0%   { opacity: 0;   transform: translateY(15px); }
    50%  { opacity: 0.6; }
    100% { opacity: 1;   transform: translateY(0); }
}

/* Main headline under tagline */
.hero-headline {
    margin-top: 3.6vh;        /* <<< closer to the tagline */
    text-align: center;
    font-size: 2.1rem;
    font-weight: 600;
    line-height: 1.3;
    opacity: 0;
    animation: headlineIntro 5s ease-out forwards 4.6s;
}

.hero-headline span {
    font-weight: 700;
}

@keyframes headlineIntro {
    0%   { opacity: 0; transform: translateY(25px); }
    20%  { opacity: 1; transform: translateY(0); }
    80%  { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(-10px); }
}















/*   =====================   MENU  ============================  */

.menu {
    position: absolute;
    top: 28vh;                 /* adjusts vertical placement */
    left: 50%;
    transform: translateX(-50%);

    display: grid;
    grid-template-columns: repeat(3, 240px);
    gap: 1.4rem 2rem;

    z-index: 9999;
    opacity: 1;                /* set to 1 for now so we can SEE it */
    pointer-events: auto;
}





/*  =============================   MENU a  ============================  */

.menu a {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: 1.1rem 2rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;

    height: 56px;                  /* ensures equal height */
    box-shadow: 0 0 0 rgba(255,255,255,0);
    transition: 
        transform 0.25s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

/* Hover effect */
.menu a:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 0 14px rgba(255,255,255,0.35);
}






/*  =============================   MENU HOVER  ============================  */

.menu a:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.10);

    box-shadow: 0 8px 22px rgba(255,255,255,0.22); /* glow */
}















/* fade menu in */
@keyframes menuIntro {
    0%   { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

.menu-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    max-width: 1100px;
    padding: 0 2rem;
}













/* ---------------------------------------------
   NEON GLASS BUTTONS
--------------------------------------------- */
.menu-item {
    position: relative;
    padding: 0.9rem 2rem;
    min-width: 170px;
    border-radius: 999px;
    text-decoration: none;
    color: white;
    font-size: 0.98rem;
    font-weight: 500;

    background: radial-gradient(circle at 10% 0,
                rgba(255,255,255,0.14),
                rgba(10,10,20,0.9));
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow: 0 18px 40px rgba(0,0,0,0.7);

    transform: translateY(0);
    transition: 0.22s ease;

    --glow: #ffe66b; /* default, overwritten below */
}

/* Staggered appearance (premium look) */
.menu-item:nth-child(1) { animation: menuItemFade 0.8s ease forwards 9.30s; opacity: 0; }
.menu-item:nth-child(2) { animation: menuItemFade 0.8s ease forwards 9.42s; opacity: 0; }
.menu-item:nth-child(3) { animation: menuItemFade 0.8s ease forwards 9.54s; opacity: 0; }
.menu-item:nth-child(4) { animation: menuItemFade 0.8s ease forwards 9.66s; opacity: 0; }
.menu-item:nth-child(5) { animation: menuItemFade 0.8s ease forwards 9.78s; opacity: 0; }
.menu-item:nth-child(6) { animation: menuItemFade 0.8s ease forwards 9.90s; opacity: 0; }


@keyframes menuItemFade {
    0%   { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Glow aura */
.menu-item::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    background: radial-gradient(circle, var(--glow), transparent 60%);
    opacity: 0;
    filter: blur(14px);
    z-index: -1;
    transition: opacity 0.22s ease;
}



/* Hover effects */
.menu-item:hover {
    transform: translateY(-7px);
    box-shadow: 0 26px 60px rgba(0,0,0,0.9);
    border-color: var(--glow);
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item:hover::after {
    opacity: 0.9;
    animation: shimmer 1.6s linear 1;   /* ← run once */
}

/* Shimmer keyframes */
@keyframes shimmer {
    0%   { background-position: 210% 0; }
    100% { background-position: -40% 0; }
}





/* ----------------------------------------------------------
   PER-BUTTON COLOUR THEMES
---------------------------------------------------------- */
.menu-item--create  { --glow: #4fd2ff; }   /* cyan */
.menu-item--fix     { --glow: #ffe66b; }   /* yellow */
.menu-item--server  { --glow: #c084ff; }   /* purple */
.menu-item--wp      { --glow: #6cffb5; }   /* mint green */
.menu-item--content { --glow: #ffb37c; }   /* peach */
.menu-item--contact { --glow: #ff6fae; }   /* pink */





/* ==========================================================
   INFO PANEL UNDER MENU  (FIXED)
   ========================================================== */

.menu-wrap{
    position: relative;
    width: 100%;
}

/* Panel placement – tweak "top" if you want it closer/further from the menu */
.info-panel{
    position: absolute;
    top: 50vh;                 /* adjust to taste */
    left: 50%;
    transform: translateX(-50%);
    width: min(72%, 980px);
    z-index: 8000;
    pointer-events: none;      /* default */
}

.info-panel--visible{
    pointer-events: auto;      /* allow hover/click when visible */
}

/* The inner glowing glass panel */
.info-panel-inner{
    padding: 1.3rem 2.4rem;
    border-radius: 999px;

    /* Glass look matching menu-item */
    background: radial-gradient(circle at 10% 0,
                rgba(255,255,255,0.14),
                rgba(10,10,20,0.9));
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);

    box-shadow: 0 18px 40px rgba(0,0,0,0.7);

    /* Hidden by default */
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.35s ease, transform 0.35s ease;

    position: relative;
}

/* When panel becomes visible */
.info-panel--visible .info-panel-inner{
    opacity: 1;
    transform: translateY(0);
}

/* Glow aura layer */
.info-panel-inner::before{
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    filter: blur(14px);
    opacity: 0;                 /* default hidden */
    transition: opacity 0.25s ease;
    z-index: -1;
}

/* When visible, allow glow */
.info-panel--visible .info-panel-inner::before{
    opacity: 0.06;
}

/* Title + text */
.info-panel-title{
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    color: #ffffff;
}

.info-panel-text{
    font-size: 0.98rem;
    line-height: 1.55;
    color: rgba(255,255,255,0.92);
}





/* ---------------------------------------------
   DYNAMIC GLOW COLOURS MATCHING MENU ITEMS
--------------------------------------------- */

.info-panel[data-service="create"]  .info-panel-inner::before { 
    background: radial-gradient(circle, #4fd2ff, transparent 60%);
}

.info-panel[data-service="fix"] .info-panel-inner::before { 
    background: radial-gradient(circle, #ffe66b, transparent 60%);
}

.info-panel[data-service="server"] .info-panel-inner::before { 
    background: radial-gradient(circle, #c084ff, transparent 60%);
}

.info-panel[data-service="wp"] .info-panel-inner::before { 
    background: radial-gradient(circle, #6cffb5, transparent 60%);
}

.info-panel[data-service="content"] .info-panel-inner::before { 
    background: radial-gradient(circle, #ffb37c, transparent 60%);
}

.info-panel[data-service="contact"] .info-panel-inner::before { 
    background: radial-gradient(circle, #ff6fae, transparent 60%);
}


/* ---------------------------------------------
   RESPONSIVE TWEAKS
--------------------------------------------- */

@media (max-width: 900px) {

    /* Make service buttons fit on tablet/mobile */
    .menu{
        width: min(92vw, 560px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .menu a{
        width: 100%;
        padding: 1rem 1.2rem;
        height: auto;
        border-radius: 34px;
        text-align: center;
        justify-content: center;
    }

    /* Keep your existing info-panel mobile tweaks */
    .info-panel{
        top: 50vh;
        width: 86%;
    }

    .info-panel-inner{
        border-radius: 24px;
        padding: 1.1rem 1.6rem;
    }
}

/* Phones: single column so nothing ever overflows */
@media (max-width: 560px) {
    .menu{
        width: min(92vw, 420px);
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }
}

















/* ---------------------------------------------
   INFO BOX STYLES
--------------------------------------------- */
.info-box {
    position: relative;
    width: 72%;
    margin: 5vh auto 0 auto;   /* adjust this number to move box down/up */
    padding: 2rem 2.4rem;

    background: rgba(255, 255, 255, 0.07);
    border-radius: 40px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border: 1px solid rgba(255, 255, 255, 0.14);

    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.info-box.show {
    opacity: 1;
    transform: translateY(0);
}

.info-box h3 {
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-transform: uppercase;
}

.info-box p {
    font-size: 1rem;
    line-height: 1.55;
    opacity: 0.92;
}


/* ==========================================================
   INFO PANEL BORDER COLOUR — MATCH MENU BUTTON
   ========================================================== */

.info-panel[data-service="create"]  .info-panel-inner {
    border-color: #4fd2ff;
}

.info-panel[data-service="fix"] .info-panel-inner {
    border-color: #ffe66b;
}

.info-panel[data-service="server"] .info-panel-inner {
    border-color: #c084ff;
}

.info-panel[data-service="wp"] .info-panel-inner {
    border-color: #6cffb5;
}

.info-panel[data-service="content"] .info-panel-inner {
    border-color: #ffb37c;
}

.info-panel[data-service="contact"] .info-panel-inner {
    border-color: #ff6fae;
}

.info-panel-inner {
    transition:
        border-color 0.25s ease,
        opacity 0.35s ease,
        transform 0.35s ease;
}

/* ==========================================================
   INFO PANEL ACTIONS (clickable)
   ========================================================== */
.info-panel-actions{
    margin-top: 0.75rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    pointer-events: auto;
}

.info-panel-actions a,
.info-panel-actions button{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-size: 0.95rem;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.07);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.info-panel-actions a:hover,
.info-panel-actions button:hover{
    transform: translateY(-2px);
    background: rgba(255,255,255,0.12);
}

/* ==========================================================
   CONTACT MODAL
   ========================================================== */

.modal{
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: none;
}

.modal.is-open{
    display: block;
}

.modal-overlay{
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.modal-card{
    position: relative;
    width: min(640px, calc(100% - 32px));
    margin: 10vh auto 0 auto;
    padding: 1.4rem 1.4rem 1.2rem 1.4rem;
    border-radius: 24px;

    background: radial-gradient(circle at 10% 0,
                rgba(255,255,255,0.14),
                rgba(10,10,20,0.92));
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: 0 30px 90px rgba(0,0,0,0.8);
}

.modal-close{
    position: absolute;
    top: 10px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

.modal-head{
    margin-bottom: 1rem;
}

.modal-title{
    font-size: 1.2rem;
    font-weight: 650;
    letter-spacing: 0.02em;
}

.modal-subtitle{
    margin-top: 0.35rem;
    color: rgba(255,255,255,0.78);
    font-size: 0.98rem;
}

.modal-form .field{
    display: block;
    margin: 0.9rem 0;
}

.modal-form .field span{
    display: block;
    margin-bottom: 0.4rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}

.modal-form input,
.modal-form textarea{
    width: 100%;
    padding: 0.85rem 0.95rem;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    color: #fff;
    outline: none;
}

.modal-form input:focus,
.modal-form textarea:focus{
    border-color: rgba(255,255,255,0.35);
}

.modal-actions{
    display: flex;
    gap: 0.7rem;
    align-items: center;
    margin-top: 0.8rem;
}

.btn-primary{
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.14);
    color: #fff;
    cursor: pointer;
}

.btn-ghost{
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.06);
    color: #fff;
    cursor: pointer;
}

.form-status{
    margin-top: 0.8rem;
    min-height: 1.2em;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
}






/* =========================
   Footer legal link
   ========================= */

/* =========================
   Footer legal link
   ========================= */

/* Pin the footer link so it always sits at the bottom of the viewport */
.site-footer{
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 15000;
  padding: 0;
  margin: 0;
  text-align: center;
  pointer-events: auto;
}

.legal-link{
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.15);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.legal-link:hover{
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.18);
}


/* =========================
   Legal modal styling
   ========================= */

.legal-card{
  max-height: min(72vh, 640px);
  overflow: hidden; /* keep header visible, scroll content only */
}

.legal-content{
  margin-top: 0.6rem;
  max-height: calc(min(72vh, 640px) - 80px);
  overflow: auto;
  padding-right: 6px;
}

.legal-content section{
  margin: 0 0 1.2rem 0;
}

.legal-content h4{
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
  color: rgba(255,255,255,0.92);
}

.legal-content p{
  margin: 0 0 0.75rem 0;
  color: rgba(255,255,255,0.78);
  line-height: 1.55;
  font-size: 0.95rem;
}

/* Mobile: give the legal modal a bit more usable height */
@media (max-width: 560px){
  .legal-card{
    margin: 8vh auto 0 auto;
    max-height: 78vh;
  }
  .legal-content{
    max-height: calc(78vh - 80px);
  }
}











/* Mobile: place info panel UNDER the menu (no overlap) */
@media (max-width: 560px) {

  /* Let the menu + panel flow naturally */
  .menu-wrap{
    position: relative;
  }

  .info-panel{
    position: static;         /* was absolute */
    top: auto;
    left: auto;
    transform: none;
    width: 100%;
    margin-top: 14px;         /* space under buttons */
    z-index: auto;
    pointer-events: auto;     /* fine on mobile */
  }

  .info-panel-inner{
    border-radius: 22px;      /* more “card” than pill on mobile */
    padding: 1.1rem 1.2rem;
  }
}

/* Phones: stack buttons AND dock the info panel directly under the menu */
@media (max-width: 560px){

  /* 1 column buttons */
  .menu{
    grid-template-columns: 1fr;
    width: min(92vw, 420px);
    gap: 0.9rem;
  }

  /* Ensure the menu wrapper becomes the positioning context */
  .menu-wrap{
    position: relative;
  }

  /* Dock the info panel under the menu (no overlap with title) */
  .info-panel{
    position: absolute;
    top: calc(100% + 14px);   /* sits just under the menu */
    left: 0;
    transform: none;
    width: 100%;
    margin: 0;
    z-index: 8000;
    pointer-events: auto;
  }

  .info-panel-inner{
    border-radius: 22px;
    padding: 1.1rem 1.2rem;
  }
}

/* Centre info panel heading on mobile only */
@media (max-width: 560px){
  .info-panel-title{
    text-align: center;
  }
}

@media (max-width: 560px){
  .info-panel-text{
    text-align: center;
  }
}

@media (max-width: 560px){
  .modal-actions{
    justify-content: space-between;
  }

  .btn-primary{
    background: rgba(255,255,255,0.14);
  }

  .btn-secondary{
    opacity: 0.7;
  }
}


/* Contact info panel – centre content only */
.info-panel[data-service="contact"] .info-panel-inner {
    text-align: center;
}

/* Centre buttons row */
.info-panel[data-service="contact"] .info-panel-actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.9rem;
}

/* Optional: slightly tighter line length for readability */
.info-panel[data-service="contact"] .info-panel-text {
    max-width: 640px;
    margin: 0 auto;
}
