/* =====================================================================
   GLOBAL VARIABLES
===================================================================== */
:root {

    /* Colours*/
    --primary-colour: rgba(106, 13, 173); /* Equivalent to #6a0dad */
    --secondary-colour: rgb(156, 39, 176); /* Equivalent to #9C27B0 */
    --contrast-colour: rgb(255, 255, 255);
    --light-primary: rgba(134, 93, 163); /* Equivalent to #865da3 */
    --light-secondary-colour: rgb(161, 106, 171); /* Equivalent to #a16aab */
    --light-grey-colour: rgb(153, 153, 153); /* Equivalent to #999999 */
    --dark-grey-colour: rgb(54, 54, 54); /* Equivalent to #363636 */
    --background-colour: rgb(0, 0, 0);
    --black2: rgb(0, 0, 0);
    --white2: rgb(255, 255, 255);
    --border-colour-light: rgb(210, 210, 210);
    --border-colour-dark: rgb(30, 30, 30);
    --Hero-Header-Colour: rgb(255, 255, 255); 
    --Hero-Text-Colour: rgb(255, 255, 255); 

    /* Fonts and headers*/
    --font-primary: 'Nunito', sans-serif;
    --font-secondary: 'Dancing Script', cursive;
    --p-font-size-s: 0.8rem;
    --p-font-size-default: 1rem;
    --p-font-size-m: 1.2rem;
    --p-font-size-l: 1.4rem;
    --p-font-size-xl: 1.6rem;
    --p-font-size-xxl: 1.8rem;
    --p-font-size-xxxl: 2rem;
    --p-font-size-xxxxl: 2.2rem;
    --p-font-size-vxl: 2.5rem;
    --p-font-size-xvl: 3rem;
    --p-font-size-xvxl: 3.5rem;
    --box-shadow1: 0 4px 8px rgba(255, 255, 255, 0.2);
    --box-shadow2: 0 4px 8px rgba(0, 0, 0, 0.9);

    /* Position, size, margin etc */
    --max-width: 1200px;
    --max-width2: 1400px;
    --site-width1: 96%;
    --site-width2: 100%;
    --border-curve-small: 4px;
    --border-curve-normal: 8px;
    --padding1: 10px auto;
    --padding2: 10px auto;

    /* Burger nav colours*/
    --burger-surround: rgba(106, 13, 173, 0.63);
    --burger-lines: rgb(255, 255, 255);

}

/* =====================================================================
   GLOBAL STYLING
===================================================================== */

* {
    margin: 0 auto; /* Remove all default margins */
    padding: 0; /* Remove all default paddings */
    box-sizing: border-box; /* Include padding and border in element's total width/height */
}

/* ==========================
   GENERAL STYLES
========================== */
body {
    margin: 0 auto;
    font-family: var(--font-primary);
    background-color: var(--background-colour);
}

/* ==========================
   CONTAINER
========================== */
.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    margin-bottom: 10px;
}

/* =========================================================================================================
   HEADER
========================================================================================================= */
header {
    background: var(--background-colour);
    color: var(--primary-colour);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
    display: flex;
    align-items: center;
}

/* ===========================================================================================================
        LOGO
========================================================================================================== */

/* Logo Container */
header .logo {
    display: flex; /* Enables alignment */
    justify-content: center; /* Horizontally center the logo */
    align-items: center; /* Vertically center the logo */
    width: 100%; /* Takes full width to allow centering */
}

/* Logo Image */
header .logo img {
    width: 300px;
    height: auto;
    display: block; /* Removes unwanted spacing below the image */
    margin-bottom: 20px;
    margin-top: 10px;
}

/* ===========================================================================================================
   ICONS FOR THEMES, THE MOON, SUN, ETC
=========================================================================================================== */
/* Theme Toggle Icons */
.theme-toggle {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-right: auto;
    position: relative; /* Required for the grey box positioning */
}

/* Grey box over theme toggle */
.theme-toggle::before {
    content: "Colour"; /* Shortened explanatory text */
    position: absolute;
    left: 25%; /* Adjusted position */
    transform: translateX(-50%);
    padding: 10px 15px;
    width: 97px; /* Adjustable width */
    height: auto; /* Default to auto */
    font-size: 1.2rem; /* Text size */
    background: rgba(0, 0, 0, 0.6); /* Default background */
    color: var(--white2); /* Text color */
    border-radius: 8px; /* Rounded edges */
    z-index: 1;
    pointer-events: none; /* Allow clicks to pass through */
    opacity: 0; /* Ensure initially hidden */
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7); /* Glow effect */
}

/* Highlight effect for the "A" button */
.theme-toggle button#fontSize span.default:hover,
.theme-toggle button#fontSize span.default:focus {
    color: var(--primary-colour); /* Highlight color */
    background: rgba(255, 255, 255, 0.2); /* Subtle background highlight */
    border-radius: 4px; 
    transition: all 0.3s ease-in-out;
}

/* Theme Toggle Buttons */
.theme-toggle button {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--black2);
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Hover and Focus Effects */
.theme-toggle button:hover,
.theme-toggle button:focus {
    transform: scale(1.5); /* Growth effect on hover */
    color: var(--primary-colour); /* Highlighted colour */
}

/* Active Button - Remains Enlarged */
.theme-toggle button.active {
    transform: scale(2.1); 
    color: var(--primary-colour); /* Colour for active button */
}

/* Ensure buttons shrink back after click */
.theme-toggle button:focus {
    outline: none;
    transform: scale(1); /* Reset scale to normal size */
}

.theme-toggle button#fontSize {
    font-size: 18px;
    border: 2px solid var(--primary-colour);
    padding: 4px 7px 3px 7px;
    border-radius: 4px;
}

/* ------------------Styling for the font size toggle group --------------------------------*/
#fontSize {
    display: inline-flex; /* Treat as a group */
    align-items: center; /* Center content vertically */
    justify-content: space-between; /* Spread items evenly */
    background: var(--black); /* Initial black background */
    color: var(--white2);
    border: 1px solid var(--primary-colour); /* Border for the entire group */
    border-radius: 4px;
    font-family: var(--font-primary);
    padding: 3px 1px; /* Spacing around the group */
    font-size: 0.8rem; /* Overall size reduced */
    margin-left: 8px;
    cursor: pointer; /* Show pointer for clickable group */
    width: 95px; /* Shrink the horizontal width */
    position: relative; /* Required for the grey box positioning */
    transition: transform 0.2s ease-in-out, background 0.3s ease-in-out; 
}

/* Grey box over font size toggle */

#fontSize::before {
    content: "Size"; /* Shortened explanatory text */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 15px;
    width: 60px; /* Adjustable width */
    height: auto; /* Default to auto */
    font-size: 1.2rem; /* Text size */
    background: rgba(0, 0, 0, 0.6); /* Default background */
    color: var(--white2); /* Text color */
    border-radius: 8px; /* Rounded edges */
    z-index: 1;
    pointer-events: none; /* Allow clicks to pass through */
    opacity: 0; /* Ensure initially hidden */
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7); /* Glow effect */
}

/* Hover effect for the group */
#fontSize:hover {
    transform: scale(1.07); /* Slight growth effect */
}

/* Individual buttons inside the group */
#fontSize .decrease,
#fontSize .increase {
    padding: 0 6px; /* Spacing around the + and - */
    font-weight: bold; /* Emphasize the buttons */
    font-size: 1.4rem; /* Make the + and - 30% larger */
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease; /* Smooth hover and click effects */
}

/* Hover effect for the buttons */
#fontSize .decrease:hover,
#fontSize .increase:hover {
    background: rgba(255, 255, 255, 0.2); /* Subtle background highlight */
    color: var(--secondary-colour); 
    border-radius: 4px; 
    transform: scale(1.4); /* Increase size by 40% on hover */
}

/* Active button effect (when clicked) */
#fontSize .decrease:active,
#fontSize .increase:active {
    background: var(--light-primary); /* Slightly darker background */
    color: var(--white2); /* Maintain contrast */
}

/* The 'A' in the center */
#fontSize .default {
    margin: 0 5px; /* Spacing between - and + */
    font-size: 1.2rem; /* Adjusted size for the 'A' */
    color: var(--white2); /* Same colour as the group */
    font-weight: bold;
    transition: transform 0.2s ease; /* Smooth size change on click */
}

/* Shrink and grow effect for the 'A' */
#fontSize:active .default {
    transform: scale(1.2); /* Slightly enlarge the 'A' when active */
}

/* Animation for grey boxes */
@keyframes fadeOut {
    0%, 95% {
        opacity: 1; /* Fully visible */
    }
    100% {
        opacity: 0; /* Fade out completely */
    }
}

/* ==========================================================================================================
   LIGHT - THEME - NAVIGATION MENU
========================================================================================================== */

body.light-theme {
    background-color: var(--white2); /* White background */
    color: var(--black2); /* Default text color */
}

/* Text Elements in Light Theme */
body.light-theme p,
body.light-theme h2,
body.light-theme h3 {
    color: var(--black2);
}

body.light-theme h1 {
    color: var(--white2);
}

body.light-theme p strong {
    color: #41045e;
}

/* ----------   light styles the form inputs ------------*/
body.light-theme input::placeholder,
body.light-theme textarea::placeholder
 {
    color: var(--black2); /*--- the placeholder text, already showing in */
    font-size: var(--p-font-size-default);
    transition: color 0.3s ease-in-out;
}

body.light-theme input:focus::placeholder,
body.light-theme textarea:focus::placeholder {
    color: rgba(192, 192, 192, 0.8);
}

body.light-theme .form-group input {
    font-size: var(--p-font-size-default);  /* Text within box when you type*/
    background: rgba(255, 255, 255, 0.7);
    color: var(--black2);  /* Text within box when you type*/
    box-shadow: var(--box-shadow1);
    border: 1px solid rgba(255, 255, 255, 0.25); /* Thin border with slight transparency */
}

body.light-theme .form-group textarea {
    font-size: var(--p-font-size-default);  /* Text within box when you type*/
    background: rgba(255, 255, 255, 0.7);
    color: var(--black2);  /* Text within box when you type*/
    box-shadow: var(--box-shadow1);
    border: 1px solid rgba(255, 255, 255, 0.25); /* Thin border with slight transparency */
}

body.light-theme .form-header h2 {
    color: var(--white2); /* Crisp black text */
}

body.light-theme .form-header p {
    font-size: var(--p-font-size-default);
    color: var(--white2);
    font-weight: bold;
}

body.light-theme .submit-btn {

    color: var(--black2);
    background: rgba(255, 255, 255, 0.6); /* Semi-transparent background */
    border: 1px solid rgba(255, 255, 255, 0.25); /* Thin border with slight transparency */
    box-shadow: 0 8px 20px rgba(71, 15, 205, 0.3);
}

body.light-theme .submit-btn:hover {
    background: var(--primary-color);
    box-shadow: 0 8px 20px rgba(71, 15, 205, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25); /* Thin border with slight transparency */
    color: var(--white2);
}
/* ------------------------------ light theme nav -------------------------------------*/ 

body.light-theme .nav-links {
    background: var(--white2);
    border: 1px solid rgba(var(--black2), 0.4); /* Light grey with 50% transparency */
}

body.light-theme .nav-links li a {
    color: var(--black2); 
}

body.light-theme header
{
    color: var(--black2);
}

body.light-theme .hamburger
{
    border: 2px solid var(--white2); /* burger border */
    background: var(---black2); 
}

body.light-theme .hamburger div {
    background: var(--white2); /* White hamburger lines */
}

body.light-theme #fontSize {
    color:  var(--white2); /* A Icon colour */
    border: 2px solid  var(--white2); /* 'A' icon border */
}

body.light-theme .nav-links li::after {
    background: linear-gradient(
        to right,
        rgba(10, 10, 10, 0) 0%,    /* Transparent at edges */
        rgba(10, 10, 10, 0.37) 50%, /* Light grey in the center */
        rgba(10, 10, 10, 0) 100%   /* Transparent at edges */
    );
    transition: transform 0.5s ease-in-out; /* Smooth transition */
}

/* Hover effect for the line */
body.light-theme .nav-links li:hover::after {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,    /* Transparent at edges */
        rgba(255, 255, 255, 0.4) 50%, /* Brighter grey in the center */
        rgba(255, 255, 255, 0) 100%   /* Transparent at edges */
    );
}

/*--------------------------- Light theme tablets styling -----------------------*/

body.light-theme .tablet h2 {
    color: var(--black2);
}

/* Static gradient background behind the h2 */
body.light-theme .tablet h2::before {
    background: linear-gradient(to right, 
        rgba(161, 161, 161, 0.3),
        rgba(255, 255, 255, 0.5) 50%, 
        rgba(161, 161, 161, 0.3) 
    );
}

body.light-theme .tablet p {
    color: var(--black2);
}

/* Gradient background behind the p */
body.light-theme .tablet p::before {
    background: linear-gradient(to right, 
        rgba(161, 161, 161, 0.7),
        rgba(255, 255, 255, 0.7) 50%, 
        rgba(161, 161, 161, 0.7)
    );
}

/*--------------- Light theme privacy styling------------------------------*/

body.light-theme .privacy-wrapper {
    background-color: #000000; /* Black background for the wrapper */
}

body.light-theme .privacy-container h1,
body.light-theme .privacy-container h2,
body.light-theme .privacy-container h3 {
    color: var(--black2); /* Replace with your branding color if needed */
}

body.light-theme .privacy-container a {
    color: #007BFF;
}

body.light-theme .privacy-container {
    background-color: #ffffff;
}
/* ============================================================================================================
   Dark - THEME - NAVIGATION MENU
============================================================================================================== */

body.dark-theme {
    background-color: var(--black2);
    color: var(--white2);
}

body.dark-theme p,
body.dark-theme h2,
body.dark-theme h3 {
    color: var(--white2);
}

body.dark-theme h1 {
    color: var(--black2);
}

body.dark-theme p strong {
    color: var(--primary-colour); 
}

/* ----------   Dark styles for the form inputs ----------------------------*/
body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder
 {
    color: var(--white2); /*--- the placeholder text, already showing in */
    font-size: var(--p-font-size-default);

    transition: color 0.3s ease-in-out;
}

body.dark-theme input:focus::placeholder,
body.dark-theme textarea:focus::placeholder {
    color: rgba(192, 192, 192, 0.8);
}

body.dark-theme .form-group input {
    font-size: var(--p-font-size-default);  /* Text within box when you type*/
    background: rgba(0, 0, 0, 0.5);
    color: var(--white2);  /* Text within box when you type*/
    box-shadow: var(--box-shadow1);
    border: 1px solid rgba(255, 255, 255, 0.25); /* Thin border with slight transparency */
}

body.dark-theme .form-group textarea {
    font-size: var(--p-font-size-default);  /* Text within box when you type*/
    background: rgba(0, 0, 0, 0.5);
    color: var(--white2);  /* Text within box when you type*/
    box-shadow: var(--box-shadow1);
    border: 1px solid rgba(255, 255, 255, 0.25); /* Thin border with slight transparency */
}

body.dark-theme .form-header h2 {
    color: black; 
}


body.dark-theme .form-header p {
    font-size: var(--p-font-size-default);
    color: var(--white2);
    font-weight: bold;
}

body.dark-theme .submit-btn {
    color: var(--white2);
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    border: 1px solid rgba(255, 255, 255, 0.25); /* Thin border with slight transparency */
    box-shadow: 0 8px 20px rgba(71, 15, 205, 0.3);
}

body.dark-theme .submit-btn:hover {
    background: var(--primary-color);
    box-shadow: 0 8px 20px rgba(71, 15, 205, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.25); /* Thin border with slight transparency */
    color: var(--white2);
}

/*--------------------- Dark theme nav -----------------------------------*/

body.dark-theme .theme-toggle button {
    color: var(--secondary-colour); /* White icons */
}

body.dark-theme .hamburger {
    border: 2px solid var(--secondary-colour); /* burger border */
    background: var(--black2);
}

body.dark-theme .hamburger div {
    background: var(--white2); /* Hamburger lines */
}

body.dark-theme #fontSize {
    color: var(--white2); /* White 'A' icon */
    border: 2px solid var(--secondary-colour);
}

body.dark-theme #fontSize .default {
    color: var(--white2); /* Same colour as the group */
}

body.dark-theme header
{
    background-color: var(--black2);
}

body.dark-theme .nav-links {
    background: var(--black2);
    border: 1px solid rgba(192, 192, 192, 0.2); /* Light grey with 50% transparency */
}

body.dark-theme .nav-links li a {
    color:  var(--white2); /* Text colour for menu items */
}

/*--------------------------- Dark theme tablets styling -----------------------*/

body.dark-theme .tablet h2 {
    color: var(--white2);
}

/* Static gradient background behind the h2 */
body.dark-theme .tablet h2::before {
    background: linear-gradient(to right, 
        rgba(90, 90, 90, 0.3),
        rgba(0, 0, 0, 0.5) 50%, 
        rgba(90, 90, 90, 0.3) 
    );
}

body.dark-theme .tablet p {
    color: var(--white2);
}

/* Gradient background behind the p */
body.dark-theme .tablet p::before {
    background: linear-gradient(to right, 
        rgba(90, 90, 90, 0.3),
        rgba(0, 0, 0, 0.5) 50%, 
        rgba(90, 90, 90, 0.3) 
    );
}

/*--------------- Dark theme privacy styling------------------------------*/

body.dark-theme .privacy-wrapper {
    background-color: #ffffff; 
}

body.dark-theme .privacy-container h1,
body.dark-theme .privacy-container h2,
body.dark-theme .privacy-container h3 {
    color: var(--white2); 
}

body.dark-theme .privacy-container a {
    color: #007BFF;
}

body.dark-theme .privacy-container {
    background-color: #000000;
}

/* ============================================================================================================
   COLOUR - THEME - NAVIGATION MENU
============================================================================================================ */

body.colour-theme {
    background-color: var(--primary-colour);
    color: var(--white2);
}

body.colour-theme p,
body.colour-theme h2,
body.colour-theme h3 {
    color: var(--white2);
}

body.colour-theme h1 {
    color: var(--primary-colour);
}

body.colour-theme p strong {
    color: #d09ee7; 
}

/* ----------------------   Colour styles for the form inputs ----------------------------*/
body.colour-theme .form-group input {
    font-size: var(--p-font-size-default);  /* Text within box when you type*/
    background: rgba(106, 13, 173, 0.15);
    color: var(--white2);  /* Text within box when you type*/
    box-shadow: var(--box-shadow1);
    border: 1px solid rgba(255, 255, 255, 0.25); /* Thin border with slight transparency */
}

body.colour-theme .form-group textarea {
    font-size: var(--p-font-size-default);  /* Text within box when you type*/
    background: rgba(106, 13, 173, 0.15);
    color: var(--white2);  /* Text within box when you type*/
    box-shadow: var(--box-shadow1);
    border: 1px solid rgba(255, 255, 255, 0.25); /* Thin border with slight transparency */
}

body.colour-theme .form-header h2 {
    color: var(--primary-colour);
}

/*-------------- Colour theme nav ---------------------------------*/

body.colour-theme #fontSize .default {
    color: var(--secondary-colour); 
}

body.colour-theme .theme-toggle button {
    color: var(--white2);
}

body.colour-theme .hamburger {
    border: 2px solid var(--primary-colour); /* Hamburger border */
    background: var(--black2);
}

body.colour-theme .hamburger div {
    background: var(--secondary-colour); /* Hamburger lines */
}

body.colour-theme #fontSize {
    color: var(--secondary-colour); /* 'A' icon colour */
    border: 2px solid var(--primary-colour);
}

body.colour-theme header
{
    background-color: var(--black2);
}

/*--------------- Colour theme privacy styling------------------------------*/

body.colour-theme .privacy-wrapper {
    background-color: #ffffff; 
}

body.colour-theme .privacy-container h1,
body.colour-theme .privacy-container h2,
body.colour-theme .privacy-container h3 {
    color: var(--white2); 
}

body.colour-theme .privacy-container a {
    color: #007BFF;
}

body.colour-theme .privacy-container {
    background-color: var(--primary-colour);
}

/* =========================================================================================================
   HAMBURGER MENU
=========================================================================================================== */
/*------------- the burger border and object ------------------------*/
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    margin-left: 25px;
    border: 2.5px solid var(--burger-surround);
    padding: 5px;
    border-radius: 4px;
}

.hamburger:hover {
    transform: scale(1.07); /* Slight growth effect */
}


/*------------- the burger lines ---------------------------------*/
.hamburger div {
    width: 23px;
    height: 3px;
    background: var(--burger-lines);
    margin: 2px;
    transition: all 0.3s ease-in-out;
    border: 1px solid #000000;
    border-radius: 9px;
}
/*---------------------- the burger animations ------------------------*/
.hamburger.rotate {
    transform: rotate(180deg);
}

.hamburger.rotate div:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.rotate div:nth-child(2) {
    opacity: 0;
}

.hamburger.rotate div:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========================================================================================================
   NAVIGATION MENU
======================================================================================================= */
/*------- The navigation menu object -----------------------------*/
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-grow: 1;
}

/*------------------- the nav menu item/  ------------------------*/
.nav-links {
    display: none;
    flex-direction: column;
    align-items: center; /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    text-align: center; /* Align text in the center */
    position: absolute;
    top: 106%;
    left: 50%; /* Center horizontally */
    transform: translateX(-50%) translateY(-110%); /* Hidden above header initially */
    background: var(--primary-colour);
    width: var(--site-width1); /* Occupies 96% of screen width */
    max-width: var(--max-width); /* Does not exceed 1200px */
    box-shadow: var(--box-shadow1);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0; /* Initially transparent */
    z-index: 0; /* Places menu behind the header */
    padding: 2px 5px 1px 5px; /* Internal spacing */
    transition: none; /* Disable default transitions for keyframes */
}

/* Active State with Animation */
.nav-links.active {
    display: flex;
    animation: slideDownBounce 2.5s ease-in-out forwards;
}

/* ==========================  KEYFRAMES FOR ANIMATION   ========================== */
@keyframes slideDownBounce {
    0% {
        opacity: 0; /* Fully transparent */
        transform: translateX(-50%) translateY(-110%); /* Hidden above header */
    }
    50% {
        opacity: 1; /* Fully visible */
        transform: translateX(-50%) translateY(0); /* Stops below the header */
    }
    65% {
        transform: translateX(-50%) translateY(5px); /* Slight downward bounce */
    }
    80% {
        transform: translateX(-50%) translateY(0); /* Bounce back */
    }
    90% {
        transform: translateX(-50%) translateY(2px); /* Smaller downward bounce */
    }
    100% {
        opacity: 1; /* Remains fully visible */
        transform: translateX(-50%) translateY(0); /* Final stable position */
    }
}

/* =================================================================
   MENU ITEMS, THE LINKS IN THE BURGER MENU
================================================================== */

.nav-links li {
    list-style: none; /* Removes bullet points */
    text-align: center; /* Centers text horizontally */
    width: 90%; /* Ensures full width for alignment */
    display: flex; /* Flexbox for centering */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    padding: 10px 5px 10px 5px;
    position: relative; /* Needed for pseudo-element positioning */
}

/* Gradient line using ::after */
.nav-links li::after {
    content: ''; /* Required for pseudo-element */
    position: absolute;
    bottom: 0; /* Position at the bottom */
    left: 0;
    right: 0;
    height: 1px; /* Line height */
    background: linear-gradient(
        to right,
        rgba(200, 200, 200, 0) 0%,    /* Transparent at edges */
        rgba(200, 200, 200, 0.37) 50%, /* Light grey in the center */
        rgba(200, 200, 200, 0) 100%   /* Transparent at edges */
    );
    transition: transform 0.5s ease-in-out; /* Smooth transition */
}

/* Hover effect for the line */
.nav-links li:hover::after {
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,    /* Transparent at edges */
        rgba(255, 255, 255, 0.4) 50%, /* Brighter grey in the center */
        rgba(255, 255, 255, 0) 100%   /* Transparent at edges */
    );
}

/* Remove bottom border from the last item */
.nav-links li:last-child {
    border-bottom: none;
}

.nav-links li a {
    text-decoration: none;
    color: var(--white2); /* Text colour of the nav menu text*/
    font-size: var(--p-font-size-default);
    transition: transform 0.5s ease-in-out; /* Smooth scaling */
}

/* Hover and focus effects */
.nav-links li:hover,
.nav-links li:focus {
    transform: scale(1.1); /* Grow by 10% */
}

.nav-links li a:hover,
.nav-links li a:focus {
    transform: scale(1.1); /* Text grows smoothly */
}

/* =============================================================================================================
   HERO SECTION
============================================================================================================== */

.hero {
    width: var(--site-width1);
    max-width: var(--max-width);
    height: 80vh; /* Full screen height */
    background: url('/Img/hero-bg.jpg') no-repeat center center/cover; /* Background image */
    position: relative; /* Needed for layering */
    overflow: hidden; /* Ensures rounded corners work */
    border-radius: 15px;
    border: 1px solid rgba(69, 69, 69, 0.696); /* Ensure proper border definition */
    box-shadow: 
    inset 2px 2px 5px rgba(115, 115, 115, 0.249), /* Inset shadow */
    0 8px 15px rgba(45, 44, 44, 0.2), /* Soft outer shadow for floating effect */
    0 4px 6px rgba(0, 0, 0, 0.5); /* Darker shadow for grounding */
    margin: 9px auto;  
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%; /* Extend above visible bounds by 50% */
    left: -50%; /* Extend leftward by 50% */
    width: 200%; /* 50% wider than hero */
    height: 250%; /* 50% taller than hero */
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.3) 0%,    /* Faint inner glow */
        rgba(255, 255, 255, 0.6) 25%,   /* Brightest peak */
        rgba(255, 255, 255, 0.2) 50%,   /* Subtle fade */
        rgba(255, 255, 255, 0) 90%      /* Fully transparent at the edges */
    );
    z-index: 1; /* Layer between the content and background */
    animation: spotlight-circular 15s infinite ease-in-out; /* Smooth circular movement */
    pointer-events: none; /* Prevents interaction issues */
}

/* Circular Spotlight Movement Animation */
@keyframes spotlight-circular {
    0% {
        transform: translate(30%, -50%) scale(2.6); /* Top-right sweep */
        opacity: 0.001; /* Brighter */
    }
    13% {
        transform: translate(-15%, 10%) scale(2.6); /* Top-right sweep */
        opacity: 0.3; /* Brighter */
    }
    25% {
        transform: translate(50%, 50%) scale(1); /* Bottom-right focus */
        opacity: 1; /* Brightest point */
    }
    50% {
        transform: translate(-50%, 30%) scale(1.9); /* Bottom-left sweep */
        opacity: 0.1; /* Softening */
    }
    75% {
        transform: translate(50%, -30%) scale(1.7); /* Back to top-left */
        opacity: 0.3; /* Fade out */
    }    
    90% {
        transform: translate(40%, -40%) scale(2.1); /* Back to top-left */
        opacity: 0.2; /* Fade out */
    }  
    100% {
        transform: translate(30%, -50%) scale(2.6); /* Back to top-left */
        opacity: 0.1; /* Fade out */
    }
}

/* Hero Content (Text and Box) */
.hero-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    position: relative;
    z-index: 2; /* Above background */
}

/* Transparent Box Behind Text */
.hero-text-box {
    background: rgba(128, 128, 128, 0.5); /* Grey box with 70% transparency */
    padding: 20px 40px;
    border-radius: 0; /* No rounded corners */
    text-align: center;
    width: 99.2%;
    max-width: var(--max-width);
    margin: 0 auto;
}

/* Text Style */
.hero-title {
    color: var(--black2);
    font-weight: bolder;
    margin: 0;
    font-family: var(--font-secondary);
    font-size: var(--p-font-size-xvl);
}

/* =====================================================================================================
   MAIN SECTION - FLOATING TABLET
===================================================================================================== */

.main-section {
    width: var(--site-width1);
    max-width: var(--max-width);
    position: relative;
    padding-top: 1%;
    min-height: 550px;
    transition: min-height 0.3s ease-out; /* Smoothly expand height */
}

/* Responsive adjustments for smaller viewports */
@media (max-width: 1024px) { /* Tablets and smaller devices */
    .main-section {
       min-height: 550px;
    }
}

@media (max-width: 768px) { /* Mobile devices */
    .main-section {
        min-height: 590px;
    }
}

@media (max-width: 480px) { /* Very small mobile devices */
    .main-section {
        min-height: 880px;
    }
}

.main-section h2 {
    margin-bottom: 20px;
    margin-top: 10px;
    color: var(--white2);
    font-family: var(--font-secondary);
    text-align: center;
}

.main-section p {
    font-size: var(--p-font-size-xl);
    line-height: 1.6; /* Maintain consistent spacing */
    color: var(--white2);
    max-width: 700px; /* Constrain text width */
    font-family: var(--font-secondary);
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Subtle shadow */
    white-space: pre-wrap; /* Allow wrapping naturally */
    overflow: hidden; /* Hide overflowing content */
    visibility: hidden; /* Hidden initially */
    min-height: 1.6em; /* Reserve space for one line of text */
    animation: fadeIn 3s ease-in-out forwards; /* Animation for visibility */ 
    animation: fadeInOut 100s ease-in-out forwards; /* Animation for visibility */
    padding-left: 1.5%;
    padding-right: 1.5%;
    margin-right: 5%;
    margin-left: 29%;
}
    
    /* Responsive adjustments for smaller viewports */
    @media (max-width: 1024px) { /* Tablets and smaller devices */
        .main-section p {
            margin-left: 25%;
        }
    }
    
    @media (max-width: 768px) { /* Mobile devices */
        .main-section p {
            margin-left: 17%;
        }
    }
    
    @media (max-width: 480px) { /* Very small mobile devices */
        .main-section p {
            margin-left: 14%;
        }
    }


/* ---------------------------- First paragraph styling -------------------------------------------------- */
.main-section p:first-of-type {
    font-size: 2rem; /* Adjust font size */
    margin-top: 30px;
    max-width: 700px;
}

.main-section p:first-of-type strong {
    font-size: 2.6rem; /* Larger font size for strong text */
}

/*--------------------------------- last of paragraph styling -------------------------------------------*/
/* Last paragraph styling */
.main-section p:last-of-type {
    max-width: 700px;
    font-weight: bold; /* Make it stand out */
    line-height: 0.8;
    padding-bottom: 11px;
}

/* Style for <strong> in the last paragraph */
.main-section p:last-of-type strong {
    font-size: 2.6rem; /* Larger font size for strong text */
}

/* ------------------ P Strong Text ------------------------*/
.main-section p strong {
    font-weight: bold;
    color: var(--primary-colour);
    font-size: 2rem;
    font-family: var(--font-secondary);
}

/* ==================================================================================================
   CONTACT SECTION STYLES
=================================================================================================== */

.contact-section {
    width: var(--site-width2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px auto;
}

.contact-container {
    width: var(--site-width1);
    max-width: var(--max-width);
    background: url('/Img/Contact.jpg') no-repeat center center/cover;
    border-radius: 15px;
    border: 1px solid rgba(73, 69, 73, 0.601); /* Ensure proper border definition */
    box-shadow: 
    inset 2px 2px 5px rgba(255, 255, 255, 0.7), /* Inset shadow */
    0 8px 15px rgba(255, 255, 255, 0.2), /* Soft outer shadow for floating effect */
    0 4px 6px rgba(0, 0, 0, 0.5); /* Darker shadow for grounding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    margin-top: 35px;
    margin-bottom: 20px;
}

.contact-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Dark overlay for contrast */
    border-radius: 15px;
    z-index: 1;
}

.form-header {
    z-index: 2;
    text-align: center;
    color: var(--white2);
    margin-bottom: 20px;
}

.form-header h2 {
    margin: 1px auto 20px auto;
    font-size: var(--p-font-size-xvxl);
    font-weight: bolder;
    font-family: var(--font-secondary);
    text-align: center;
    display: block;
    max-width: 600px;
    /* Create the punched-through effect */
    color: var(--black2); /* Crisp black text */
    background: url('../Img/form-background.jpg') no-repeat center center; /* Use form image as background */
    background-size: cover; /* Ensure the image covers the text area */
    -webkit-background-clip: text; /* Clip background to the text (Webkit browsers) */
    background-clip: text; /* Clip background to the text (modern browsers) */

    /* Add subtle sharp edges to enhance depth */
    text-shadow: 
        -1px -1px 0 rgba(0, 0, 0, 0.8),  /* Top-left shadow for depth */
        1px 1px 0 rgba(255, 255, 255, 0.6), /* Bottom-right light for contrast */
        1px 1px 1px rgba(0, 0, 0, 0.4); /* Additional depth */
}

.form-header p {
    font-size: var(--p-font-size-default);
    font-family: var(--font-primary);
    color: var(--white2); 
    font-weight: bold;
}

.contact-form {
    width: 100%;
    max-width: 500px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin:  0 auto;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input {
    width: 100%;
    padding: 10px 15px;
    font-size: var(--p-font-size-default);  /* Text within box when you type*/
    border: none;
    border-radius: 5px;
    font-family: var(--font-primary);  /* Text within box when you type*/
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    color: var(--white2);  /* Text within box when you type*/
    box-shadow: var(--box-shadow1);
    transition: all 0.3s ease-in-out;
}

.form-group input:focus {
    box-shadow: var(--box-shadow1);
    transform: scale(1.02);
}

/* Placeholder styling for both inputs and textareas */
input::placeholder,
textarea::placeholder {
    color: var(--white2);
    font-size: var(--p-font-size-default); /* Use variable with fallback */
    transition: color 0.3s ease-in-out;
    font-family: var(--font-primary);
}

input:focus::placeholder,
textarea:focus::placeholder {
    color: rgba(192, 192, 192, 0.8);
}

/* Change placeholder style when the input is focused */
input:focus::placeholder {
    color: rgba(192, 192, 192, 0.8); /* Lighter colour on focus */
}

textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    color: var(--white2);
    border-radius: 5px;
    font-family: var(--font-primary);
    border: 1px solid rgba(200, 200, 200, 0.5);
    font-size: var(--p-font-size-default);
    box-shadow: var(--box-shadow1);
    background: rgba(255, 255, 255, 0.2);
}

textarea:focus,
input:focus {
    outline: none;
    border: 3px solid rgba(106, 13, 173, 0.47); /* Pink with 50% transparency */
    box-shadow: var(--box-shadow1);
}

.form-group.captcha label {
    font-size: var(--p-font-size-default);
    font-family: var(--font-primary);
    margin-bottom: 5px;
    display: block;
    color: var(--white2);
}

.submit-btn {
    padding: 12px 20px;
    font-size: var(--p-font-size-default);
    font-family: var(--font-primary);
    color: var(--white2);
    border: 1px solid rgba(200, 200, 200, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    max-width: 350px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(71, 15, 205, 0.3);
    transition: all 0.3s ease-in-out;
    margin-top: 3%;
    margin-bottom: 1%;
}

.submit-btn:hover {
    box-shadow: 0 8px 20px rgba(71, 15, 205, 0.3);
    transform: translateY(-2px);
    border: 1px solid rgba(88, 2, 109, 0.3);
}

/* ==========================
   FORM ERROR BOX STYLES
========================== */
.error-box {
    display: none; /* Hidden by default */
    background: rgba(106, 13, 173, 0.4); 
    color: #FFFFFF;
    border: 1px solid rgba(255, 50, 50, 0.5);
    border-radius: 5px;
    margin-top: 5px;
    padding: 5px 10px;
    font-size: var(--p-font-size-default);
    text-align: center; 
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ================================================================================================
   MULTI-TABLET SECTION STYLES
==================================================================================================== */
.tablet-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

/* Container to hold the tablets */
.tablet-container {
    display: flex;
    flex-wrap: wrap; /* Allows tablets to stack on smaller screens */
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: var(--max-width);
}

.tablet-container h1 {
color: #ff8a00; /* Fallback solid color */
margin-bottom: 25px;
font-family: 'Dancing Script', cursive;
font-size: var(--p-font-size-xxxxl);
text-align: center;
width: 100%;
background: linear-gradient(to right, #ff8a00, #e52e71);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent; /* Gradient text */
text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Subtle shadow */
position: relative;
animation: fadeInPop 1s ease-out forwards; /* Add fade-in animation */
opacity: 0; /* Hidden by default */
}

/* Fade-in and pop effect for the heading */
@keyframes fadeInPop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    60% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
    }
}

/* Add fade-in animation for the heading */
.tablet-container h1.fade-in {
    animation: fadeInHeading 3s ease-out forwards;
    opacity: 1; /* Ensure it's fully visible after animation */
}

@keyframes fadeInHeading {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Tablet Card Styling */
.tablet {
    background: url('../Img/Feature2.png') no-repeat; /* Background image */
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 20px 0px 20px 0px;
    width: calc(33.333% - 20px); /* Three tablets per row */
    border: 1px solid rgba(255, 255, 255, 0.25); /* Thin border with slight transparency */
    text-align: center;
    transform: translateX(-100%); /* Start off-screen */
    flex: 1 1 100%; /* Full width for stacking */
    max-width: 400px;
    animation: swoop-in 2.5s cubic-bezier(0.25, 1.25, 0.5, 1.25) forwards;
    box-shadow: var(--box-shadow2);
    background-size: 100% 300%; /* Image is vertically divided into thirds */
}

@media (min-width: 769px) {
.tablet {
    flex: 1 1 calc(33.333% - 20px); /* Three tablets per row on wider screens */
}
}

/* Responsive Design: Stack tablets on smaller screens */
@media (max-width: 768px) {
    .tablet {
        width: 100%; /* Full width for stacking */
    }
}

/* Responsive Design: Allow tablets to form a row when enough space */
@media (min-width: 769px) {
    .tablet {
        width: calc(33.333% - 20px); /* Three tablets per row */
    }
}

/* Background positioning for each tablet */
#tablet1 {
    background-position: center top; /* Top of the image */
    animation-delay: 0s;
}

#tablet2 {
    background-position: center center; /* Middle of the image */
    animation-delay: 0.3s;
}

#tablet3 {
    background-position: center bottom; /* Bottom of the image */
    animation-delay: 0.6s;
}

/* Individual Tablet Text Styling */
.tablet h2 {
    font-size: var(--p-font-size-xl);
    font-family: var(--font-primary);
    margin-bottom: 10px;
    font-weight:900;
    color: var(--white2);
    padding: 10px 10px 10px 10px;
    position: relative;
    text-align: center;
    z-index: 1; /* Keep text above the gradient */
    overflow: hidden; /* Ensure light effect doesn't overflow */
}

/* Static gradient background behind the h2 */
.tablet h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(0, 238, 255, 0.3), /* Blue on the left */
        rgba(229, 46, 113, 0.5) 50%, /* Reddish in the center */
        rgba(0, 238, 255, 0.3) /* Blue on the right */
    );
    z-index: -2; /* Keep gradient behind the text and light effect */
    pointer-events: none; /* Make it non-interactive */
}

/* Light effect overlay */
.tablet h2::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; /* Start the light effect off-screen */
    width: 200%; /* Large enough to glide over the entire h2 */
    height: 100%;
    background: radial-gradient(
        circle, 
        rgba(255, 255, 255, 0) 0%, /* Transparent start */
        rgba(255, 255, 255, 0.7) 50%, /* Bright center */
        rgba(255, 255, 255, 0) 100% /* Transparent edges */
    );
    z-index: -1; /* Place it above the gradient but behind the text */
    animation: dynamic-light 5s infinite ease-in-out; /* Slower animation */
}

/* Keyframes for the dynamic light animation */
@keyframes dynamic-light {
    0% {
        transform: translateX(-150%);
        opacity: 0.2; /* Dim start */
    }
    20% {
        transform: translateX(-100%);
        opacity: 0.1; /* Brighten slightly */
    }
    40% {
        transform: translateX(0%);
        opacity: 0.2; /* Brightest flash in the center */
    }
    60% {
        transform: translateX(100%);
        opacity: 0.1; /* Dim again */
    }
    80% {
        transform: translateX(100%);
        opacity: 0.2; /* Dim again */
    }
    100% {
        transform: translateX(150%);
        opacity: 0.1; /* Return to dim state */
    }
}

/* Individual Tablet Paragraph Styling */
.tablet p {
    font-size: var(--p-font-size-m);
    color: var(--white2);
    font-family: var(--font-primary);
    position: relative;
    text-align: center;
    z-index: 1; /* Keep text above the gradient */
    padding: 10px; /* Optional: Add padding to separate text from the background */
}

/* Gradient background behind the p */
.tablet p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.6), rgba(128, 128, 128, 0.1));
    border-radius: 8px; /* Optional: Add rounded corners */
    z-index: -1; /* Place gradient behind the text */
    pointer-events: none; /* Make it non-interactive */
}

/* Animation: Swoop in from the left with bounce */
@keyframes swoop-in {
    0% {
        transform: translateX(-100%); /* Off-screen */
        opacity: 0;
    }
    60% {
        transform: translateX(20px); /* Overshoot */
        opacity: 1;
    }
    80% {
        transform: translateX(-10px); /* Bounce back */
    }
    100% {
        transform: translateX(0); /* Settle in place */
    }
}

/* Delay Animations for Tablets */
#tablet1 {
    animation-delay: 0s;
}

#tablet2 {
    animation-delay: 0.3s;
}

#tablet3 {
    animation-delay: 0.6s;
}

/* =====================================================================
   Footer
======================================================================= */

/* Footer Styles */
.site-footer {
    position: relative;
    color: #fff;
    text-align: left;
    padding: 50px 20px; /* Adjusted padding for better proportions */
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.95)),
        url('../Img/AI-Earth.png') no-repeat top center;
    background-size: cover;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-section {
    flex: 1 1 calc(33.333% - 20px);
    min-width: 200px;
}

.footer-section h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-colour);
    padding-bottom: 5px;
    color: var(--primary-colour);
}

.footer-section p {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-colour);
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    margin-top: 20px; /* Reduced margin */
    text-align: center;
    font-size: 0.85rem;
    color: #aaa;
}

.footer-bottom p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h2 {
        text-align: center;
    }
}

/* ================================================================================
   Privacy Policy
================================================================================= */
.privacy-wrapper {
    background-color: #000000; /* Black background for the wrapper */
    padding: 10px 0; /* Ensures spacing around the container */
}

.privacy-container {
    max-width: 800px;
    margin: 10px auto;
    padding: 25px 35px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    font-family: var(--font-primary);
    line-height: 1.8;
}

.privacy-container h1,
.privacy-container h2,
.privacy-container h3 {
    color: var(--primary-colour); /* Replace with your branding color if needed */
    margin-bottom: 20px;
}

.privacy-container p {
    margin-bottom: 16px;
}

.privacy-container ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.privacy-container ul li {
    margin-bottom: 10px;
}

.privacy-container a {
    color: #007BFF;
    text-decoration: none;
}

.privacy-container a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .privacy-container {
        padding: 20px 15px;
        margin: 20px;
    }
}

/* ================================================================================
   Privacy banner - cookies
================================================================================= */
/* Cookie Popup and Preferences Panel Background */
#cookie-popup,
#preferences-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Dimmed background overlay */
    z-index: 1000;
    padding: 0 10px;
}

/* Shared Tablet Styling for Cookie Popup and Preferences Panel */
#cookie-tablet,
#preferences-container {
    background-color: rgba(255, 255, 255, 0.7); /* Semi-transparent white background */
    color: var(---black2);
    font-family: var(--font-primary);
    font-size: var(--p-font-size-default);
    padding: 20px;
    border-radius: 15px; /* Rounded corners for a tablet look */
    width: 400px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.5); /* Subtle border */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Floating shadow effect */
    position: relative;
    overflow: hidden; /* Hide the glistening animation overflow */
}

/* Glistening Animation for Both Panels */
#cookie-tablet::before,
#preferences-container::before {
    content: '';
    position: absolute;
    top: -100%; /* Start above the tablet */
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.09) 100%);
    transform: rotate(179deg);
    animation: glisten 7s infinite linear; /* Smooth, infinite glisten */
    pointer-events: none; /* Allow interaction with elements below */
}

/* Keyframes for Glistening Animation */
@keyframes glisten {
    0% {
        top: -100%;
        left: -50%;
    }
    50% {
        bottom: 50%;
        right: 50%;
    }
    100% {
        top: 200%;
        left: 50%;
    }
}

/* Tablet Header Styling */
#cookie-tablet h2,
#preferences-container h2 {
    margin-bottom: 10px;
    color: var(--primary-colour);
    font-family: var(--font-primary);
}

/* Paragraph Styling */
#cookie-tablet p,
#preferences-container p {
    margin-bottom: 20px;
    font-family: var(--font-primary);
    font-size: var(--p-font-size-default);
}

/* Button Styling for Both Panels */
#cookie-tablet button,
#preferences-container button {
    margin: 5px;
    font-size: var(--p-font-size-default);
    font-family: var(--font-primary);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    min-width: 210px;
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.634);
    transition: all 0.3s ease-in-out;
    border: 1px solid rgba(200, 200, 200, 0.3);
    display: inline-block; /* Ensures proper clickable area */
    text-align: center; /* Centers the text within the button */
}

/* Specific Button Colors */
#cookie-tablet button#accept-all-cookies,
#preferences-container button#accept-all-preferences {
    background-color: #6a0dad;
    color: #fff;
}

#cookie-tablet button#accept-all-cookies:hover,
#preferences-container button#accept-all-preferences:hover {
    background-color: #7b26c2; /* Slightly lighter purple */
    box-shadow: 0 10px 15px rgba(106, 13, 173, 0.5); /* Enhance shadow on hover */
}

#cookie-tablet button#accept-essential-cookies,
#preferences-container button#save-preferences {
    background-color: #28a745;
    color: #fff;
}

#cookie-tablet button#accept-essential-cookies:hover,
#preferences-container button#save-preferences:hover {
    background-color: #34c759; /* Slightly lighter green */
    box-shadow: 0 10px 15px rgba(40, 167, 69, 0.5); /* Enhance shadow on hover */
}

#cookie-tablet button#reject-cookies,
#preferences-container button#reject-all-preferences {
    background-color: #dc3545;
    color: #fff;
}

#cookie-tablet button#reject-cookies:hover,
#preferences-container button#reject-all-preferences:hover {
    background-color: #e84d5b; /* Slightly lighter red */
    box-shadow: 0 10px 15px rgba(220, 53, 69, 0.5); /* Enhance shadow on hover */
}

/* "Manage Preferences" Button */
#cookie-tablet button#manage-preferences {
    background-color: #f0ad4e; /* Orange color for the manage button */
    color: #fff;
}

#cookie-tablet button#manage-preferences:hover {
    background-color: #ffbc59; /* Slightly lighter orange */
    box-shadow: 0 10px 15px rgba(240, 173, 78, 0.5); /* Enhance shadow on hover */
}

/* Preferences Form Styling */
#preferences-container form {
    margin-bottom: 20px;
    text-align: left; /* Align form labels to the left */
}

#preferences-container form label {
    margin-bottom: 10px;
    display: block; /* Ensure each label is on a new line */
    font-size: 0.9rem;
}

/* =====================================================================
   CONTACT FORM MAIN ADJUSTMENT
======================================================================= */
.main-section-height-override {
    height: 150px; /* Set your desired height */
    overflow: hidden; /* Optional: Manage content overflow */
}

/* =====================================================================
   Login Icon
======================================================================= */
#loginButton {
    background: transparent;
    border: none;
    font-size: 1.5rem; /* Adjust size as needed */
    cursor: pointer;
    color: var(--white2); /* Adjust to match your theme */
    transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
    margin-left: 11px; /* Spacing between font size and login button */
    display: flex;
    align-items: center; /* Center icon vertically */
    justify-content: center;
}

/* Hover and Focus Effects */
#loginButton:hover,
#loginButton:focus {
    transform: scale(1.4); /* Slightly enlarge on hover */
    color: var(--secondary-colour); /* Highlighted colour */
}

/* Active Button Effect */
#loginButton:active {
    transform: scale(1.5); /* Reset scale when clicked */
}

/* Font Awesome Icon Adjustments */
#loginButton i {
    display: inline-block;
    line-height: 1;
}

/* =====================================================================
   Login page
======================================================================= */

/* Login Container */
.login-container {
    width: var(--site-width2);
    max-width: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px auto;
}

/* Login Box */
.login-box {
    width: var(--site-width1);
    max-width: var(--max-width);
    background: url('/Img/beautiful-ai.png') no-repeat center center/cover;
    border-radius: 15px;
    border: 1px solid rgba(73, 69, 73, 0.601); /* Ensure proper border definition */
    box-shadow: 
    inset 2px 2px 5px rgba(255, 255, 255, 0.7), /* Inset shadow */
    0 8px 15px rgba(255, 255, 255, 0.2), /* Soft outer shadow for floating effect */
    0 4px 6px rgba(0, 0, 0, 0.5); /* Darker shadow for grounding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
    margin-top: 35px;
    margin-bottom: 20px;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); /* Dark overlay for contrast */
    border-radius: 15px;
    z-index: 1;
}

/* Form Group */
.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.9);
    border-radius: 5px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: var(--primary-colour); /* Match theme primary color */
    box-shadow: 0 0 5px var(--primary-colour);
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper button {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.5);
}

.password-wrapper button:hover {
    color: var(--primary-colour);
}

/* Change Password Link */
.change-password a {
    font-size: 0.9rem;
    color: var(--primary-colour);
    text-decoration: none;
    transition: color 0.3s;
}

.change-password a:hover {
    text-decoration: underline;
    color: var(--secondary-colour);
}

.password-wrapper button i {
    font-size: 1.4rem; /* Adjust size (e.g., 1.2rem, 16px, etc.) */
    color: var(--white2); /* Change color to your desired value */
    transition: color 0.3s ease, transform 0.3s ease; /* Smooth transition for hover effects */
}

.password-wrapper button:hover i {
    color: var(--secondary-colour); /* Darker shade of the color for hover effect */
    transform: scale(1.2); /* Slightly increase size on hover */
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .login-box {
        padding: 20px;
    }
}

/* =====================================================================
   RESPONSIVE DESIGN
======================================================================= */
@media (max-width: 768px) {


    .hero-text-box p {
        font-size: 1rem;
    }

    nav ul {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-overlay {
        left: 10%;
        right: 10%;
        bottom: 5%;
    }

    .contact-container {
        max-height: 90%;
    }

}
