@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins;
    font-family: sans-serif;
}

:root {
    --primary: #ff1b82;  /* 主色 */
    --secondary: #ffffff; /* 次色 */
    --ternary: #1327ff;  /* 备用色 */
    --light: #f7f26c;    /* 浅色 */
    --dark: #f50414;     /* 深色 */
}


/* Scrollbar Css */

::-webkit-scrollbar-thumb {
    background: rgba(152, 151, 151, 0.883);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px grey;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgb(228, 53, 82);
    border-radius: 10px;
}

/* Preloader Css */

#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1001;
}

#loader-wrapper .loader-section {
    position: fixed;
    top: 0;
    width: 51%;
    height: 100%;
    background: #ffffff;
    z-index: 1000;
    -webkit-transform: translateX(0);
    transform: translateX(0);
}

#loader-wrapper .loader-section.section-left {
    left: 0;
}

#loader-wrapper .loader-section.section-right {
    right: 0;
}

#loader {
    display: block;
    position: relative;
    left: 50%;
    top: 50%;
    width: 150px;
    height: 150px;
    margin: -75px 0 0 -75px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #3498db;
    -webkit-animation: spin 2s linear infinite;
    animation: spin 2s linear infinite;
    z-index: 99999;
}

#loader:before {
    content: "";
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #e74c3c;
    -webkit-animation: spin 3s linear infinite;
    animation: spin 3s linear infinite;
}

#loader:after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #f9c922;
    -webkit-animation: spin 1.5s linear infinite;
    animation: spin 1.5s linear infinite;
}

.loaded #loader-wrapper {
    visibility: hidden;
    -webkit-transform: translateY(-100%);
    transform: translateY(-100%);
    -webkit-transition: all 0.3s 1s ease-out;
    transition: all 0.3s 1s ease-out;
}

.loaded #loader-wrapper .loader-section.section-left {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
    -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.loaded #loader-wrapper .loader-section.section-right {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    -webkit-transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
    transition: all 0.7s 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.loaded #loader {
    opacity: 0;
    -webkit-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
    }
}

/* Preloader Css Ends */

body {
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-image: url(./assets/images/bg1.png);
    background-repeat: no repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: 50% 50%;
    font-size: 1.4rem;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.dark-mode {
    background-color: #222222;/* 设置深色模式背景色为深灰色 */
    color: #eeeeee;/* 设置深色模式下的文字颜色为浅灰色 */
    background-image: url(./assets/images/dbg.jpg);/* 设置深色模式下背景图片为 dbg.jpg */
}
/*这段代码表示，当页面应用 dark-mode 类时，背景色变为深色，文字颜色为浅色，并且背景图片变为 dbg.jpg。*/
/*对于浅色模式，默认情况下，页面没有 .dark-mode 类，因此会应用默认的浅色模式。*/
.blue-mode {
    background-color: #1327ff; /* 蓝色背景 */
    color: #ffffff; /* 白色文字 */
    background-image: url(./assets/images/lanse.jpg);
}
.yellow-mode {
    background-color: #f7f26c; /* 黄色背景 */
    color: #333333; /* 黑色文字 */
    background-image: url(./assets/images/huanse.jpg);
}

body .dark-mode {
    background-image: none; /* 取消深色模式下的背景图片 */
    background-color: black; /* 设置背景色为黑色 */
}
body .blue-mode {
    background-image: none; /* 取消深色模式下的背景图片 */
    background-color: blue; /* 设置背景色为蓝色 */
}
body .yellow-mode {
    background-image: none; /* 取消深色模式下的背景图片 */
    background-color: yellow; /* 设置背景色为黄色 */
}
html {
    font-size: 62.5%;
}

body,
html {
    font-weight: 300;
    line-height: 1.4;
    scroll-behavior: smooth;
}

button#dark-mode-toggle {
    background-image: url('assets/images/theme-mode.png');
    background-color: transparent;
    background-size: cover;
    position: fixed;
    top: 5.5px;
    right: 16px;
    border: none;
    padding: 10px;
    outline: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 999;
    margin-top: 4px;
    transition: filter 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

button#dark-mode-toggle:hover {
    transform: scale(1.2);
    animation: shine 1.5s infinite ease-in-out;
    box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.5), 0 0 20px 10px rgba(255, 255, 255, 0.3);
}

/* Keyframes for glowing animation */
@keyframes shine {
    0% {
        box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.5), 0 0 20px 10px rgba(255, 255, 255, 0.3);
    }

    50% {
        box-shadow: 0 0 15px 10px rgba(255, 255, 255, 0.7), 0 0 30px 15px rgba(255, 255, 255, 0.4);
    }

    100% {
        box-shadow: 0 0 10px 5px rgba(255, 255, 255, 0.5), 0 0 20px 10px rgba(255, 255, 255, 0.3);
    }
}

.dark-mode button#dark-mode-toggle {
    filter: grayscale(100%);
}

.header1 {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background-repeat: no repeat;
    background-image: url(./assets/images/navbar.png);
    background-size: cover;
    background-position: 50% 50%;
}

.dark-mode .header1 {
    background-image: none;
    background-color: black;
}
.blue-mode .header1 {
    background-image: none;
    background-color: blue;
}
.yellow-mode .header1 {
    background-image: none;
    background-color: yellow;
}
.header2 {
    position: sticky;
    top: 0;
    z-index: 900;
    width: 100%;
    background-repeat: no repeat;
    background-image: url(./assets/images/bg3.png);
    background-size: cover;
    background-position: 50% 50%;
}

.dark-mode .header2 {
    background-image: none;
    background-color: black;
}
.blue-mode .header2 {
    background-image: none;
    background-color: blue;
}
.yellow-mode .header2 {
    background-image: none;
    background-color: yellow;
}
.header3 {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    width: 100%;
    background-repeat: no repeat;
    background-image: url(./assets/images/bg2.png);
    background-size: cover;
    background-position: 50% 50%;
}

.dark-mode .header3 {
    background-color: black;
    background-image: none;
}

.blue-mode .header3 {
    background-color: blue;
    background-image: none;
}
.yellow-mode .header3 {
    background-image: none;
    background-color: yellow;
}
.navbar {
    margin: 0 auto;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.7));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 21px 16px 0 rgba(0, 0, 0, 0.37);
}

a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    text-shadow: 1px 1px 2px black, 1px 1px 1px white;
}

.flex-container {
    display: flex;
    flex-direction: row;
    text-align: center;
    margin-bottom: -10px;
}

.flex-item-left {
    background-color: transparent;
    margin-left: 10px;
    flex: 5%;
}

.flex-item-right {
    background-color: transparent;
    padding: 0px;
    text-align: center;
    margin-left: 5px;
    font-size: 2.3rem;
    color: white;
    text-shadow: 1px 1.5px 2px black, 1px 1px 1px white;
    font-weight: 700;
    flex: 10%;
}

ul {
    list-style: none;
}

nav {
    display: flex;
    height: 60px;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    box-shadow: 0px 3px 5px rgb(30, 30, 30);
}

nav ul {
    display: flex;
    gap: 1rem;
    margin-right: 61px;
}

nav li {
    font-size: 1.3vw;
    font-weight: bolder;
    border-bottom: 0.4rem transparent solid;
    transition: 0.3s ease-in-out;
    margin-right: 10px;
}

nav li:hover {
    border-radius: 5px;
    transition: 0.3s ease-in-out;
    background-color: #f9b3c7;
}

nav a {
    font-weight: bold;
}

.nav-menu .nav-item .nav-link {
    padding: 10px 5px;
    position: relative;
}

.nav-menu .nav-item .nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 3.2px;
    background: #ce4f9b;
    transition: width 0.3s ease;
    position: absolute;
    left: 50%;
    bottom: -5px;
    transform: translateX(-50%);
}

.nav-menu .nav-item .nav-link:hover {
    color: #d72590;
}

.nav-menu .nav-item .nav-link:hover::after {
    width: 100%;
}

.logo {
    font-size: 2.3rem;
    font-weight: 700;
    margin-left: 10px;
    font-family: Ubuntu;
    color: white;
    text-shadow: 1px 1.5px 2px black, 1px 1px 1px white;
}

.hamburger {
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: white;
}

/* Components Section Css */

section {
    scroll-margin-top: 50px;
    z-index: 100;
}

.comp-section {
    height: 80vh;
    display: grid;
    color: var(--secondary);
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 2;
}

.comp-section .compcontainer .logo img {
    width: clamp(200px, 20vw, 250px);
}

.comp-section .compcontainer h1,
.comp-section .compcontainer h3 {
    display: flex;
    flex-direction: column;
    gap: 30px;
    z-index: 200;
}

.comp-section .compcontainer h1 {
    margin: -25px 0 20px;
    font-size: clamp(4rem, 4vw, 7rem);
    background: linear-gradient(to right, #f70479, #cccccc);
    background: -webkit-linear-gradient(to right, #f70479, #cccccc);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: lights 5s 750ms linear infinite;
}

@keyframes lights {
    0% {
        color: hsl(230, 40%, 80%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.2),
            0 0 0.125em hsla(320, 100%, 60%, 0.3),
            -1em -0.125em 0.5em hsla(40, 100%, 60%, 0),
            1em 0.125em 0.5em hsla(200, 100%, 60%, 0);
    }

    30% {
        color: hsl(230, 80%, 90%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.5),
            0 0 0.125em hsla(320, 100%, 60%, 0.5),
            -0.5em -0.125em 0.25em hsla(40, 100%, 60%, 0.2),
            0.5em 0.125em 0.25em hsla(200, 100%, 60%, 0.4);
    }

    40% {
        color: hsl(230, 100%, 95%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.5),
            0 0 0.125em hsla(320, 100%, 90%, 0.5),
            -0.25em -0.125em 0.125em hsla(40, 100%, 60%, 0.2),
            0.25em 0.125em 0.125em hsla(200, 100%, 60%, 0.4);
    }

    70% {
        color: hsl(230, 80%, 90%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.5),
            0 0 0.125em hsla(320, 100%, 60%, 0.5),
            0.5em -0.125em 0.25em hsla(40, 100%, 60%, 0.2),
            -0.5em 0.125em 0.25em hsla(200, 100%, 60%, 0.4);
    }

    100% {
        color: hsl(230, 40%, 80%);
        text-shadow:
            0 0 1em hsla(320, 100%, 50%, 0.2),
            0 0 0.125em hsla(320, 100%, 60%, 0.3),
            1em -0.125em 0.5em hsla(40, 100%, 60%, 0),
            -1em 0.125em 0.5em hsla(200, 100%, 60%, 0);
    }
}

.comp-section .compcontainer h3 {
    font-weight: 600;
    font-size: clamp(2rem, 3vw, 3rem);
    margin: 10px 10px 20px;
    text-shadow: 2px 2px 2px black, 0.5px 0.5px 1px white;
}

.paragraph {
    font-size: clamp(1.5rem, 2vw, 2rem);
    width: 80%;
    text-align: center;
    margin: auto;
    padding: 10px;
    color: white;
    text-shadow: 1px 1px 2px black, 0.5px 0.5px 1px white;
}

.comp-section .compcontainer a {
    margin-top: 50px;
}

.comp-section .compcontainer .started {
    height: auto;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-top: 20px;
    padding: 10px 45px;
    border-radius: 30px;
    color: rgb(104, 73, 131);
    background: linear-gradient(to bottom, #b69bff, #eadafb);
    cursor: pointer;
    transition: transform 0.5s;
    box-shadow: 2px 2px 2px black, 1px 1px 1px white;
    text-shadow: 1px 1px 2px black, 1px 1px 1px rgb(57, 4, 100);
}

.comp-section .compcontainer .started:hover {
    transform: scale(1.05);
    border: 2px solid var(black);
    background: rgba(255, 255, 255, 0.881);
}

.dark-mode .comp-section .compcontainer .started {
    color: rgb(58, 6, 90);
    background: linear-gradient(to bottom, #9e97e6, #ffffff);
    text-shadow: 1px 1px 2px rgb(197, 190, 190), 1px 1px 1px rgb(57, 4, 100);
}

.dark-mode .comp-section .compcontainer .started:hover {
    background: #b1c2d4;
}


/* Container Section Css */

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 32px 0;
}

.container .box {
    position: relative;
    width: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px;
    background: linear-gradient(to bottom, #b69bff, #eadafb);
    border: 3px solid rgb(35, 143, 237);
    border-radius: 50px;
    box-shadow: 1px 1px 2px 1px rgb(165, 176, 184);
    cursor: pointer;
}

.container .box:hover {
    background: linear-gradient(to bottom, hsl(253, 45%, 88%), hsl(0, 0%, 100%)) transparent;
    border: 3px solid rgba(139, 65, 209, 0.743);
    box-shadow: 1px 1px 2px 1px rgba(224, 202, 245, 0.743);
}

.dark-mode .container .box {
    background: linear-gradient(to bottom, #9e97e6, #ffffff);
    border: 3px solid rgb(108, 155, 202);
    box-shadow: 1px 1px 2px 1px rgb(91, 131, 164);
}
.blue-mode .container .box {
    background: linear-gradient(to bottom, #9e97e6, #ffffff);
    border: 3px solid rgb(108, 155, 202);
    box-shadow: 1px 1px 2px 1px rgb(91, 131, 164);
}

.dark-mode .container .box:hover {
    background: rgb(79, 97, 112);
    border: 3px solid rgba(234, 223, 244, 0.743);
    box-shadow: 1px 1px 2px 1px rgba(224, 202, 245, 0.743);
}
.blue-mode .container .box:hover {
    background: rgb(79, 97, 112);
    border: 3px solid rgba(234, 223, 244, 0.743);
    box-shadow: 1px 1px 2px 1px rgba(224, 202, 245, 0.743);
}
.container .zoom-effect {
    transition: transform 0.5s ease-in-out;
}


.container .zoom-effect:hover {
    transform: scale(1.04);
    transition: transform 0.3s ease-in-out;
}

.container .box .content {
    position: relative;
    width: 320px;
    left: 0;
    padding: 20px 40px;
    text-align: center;
    transition: 0.5s ease-in;
    color: var(--dark);
}

.container .box .content i {
    font-size: 73px;
    color: rgb(18, 100, 166);
    text-shadow: 1px 1px 2px black, 1px 1px 2px rgb(37, 111, 172);
}

.dark-mode .container .box .content i {
    text-shadow: 1px 1px 2px black, 1px 1px 2px #a5b9c5;
}

.blue-mode .container .box .content i {
    text-shadow: 1px 1px 2px black, 1px 1px 2px #a5b9c5;
}

.container .box .content h2 {
    font-size: 23px;
    font-weight: 500px;
    color: rgb(37, 111, 172);
    margin-top: 25px;
    margin-bottom: 5px;
    text-shadow: 0.5px 0.5px 0.5px black, 0.5px 0.5px 1px rgb(37, 111, 172);
}

.container .box:hover .content i,
.container .box:hover .content h2 {
    color: rgb(114, 9, 149);
    text-shadow: 1px 1px 2px black, 1px 1px 2px rgb(37, 111, 172);
}

.dark-mode .container .box:hover .content i,
.dark-mode .container .box:hover .content h2 {
    color: rgba(253, 252, 253, 0.743);
    text-shadow: 1px 1px 2px black, 1px 1px 2px rgb(175, 189, 200);
}
.blue-mode .container .box:hover .content i,
.blue-mode .container .box:hover .content h2 {
    color: rgba(253, 252, 253, 0.743);
    text-shadow: 1px 1px 2px black, 1px 1px 2px rgb(175, 189, 200);
}
/* Footer Css */

footer {
    background-color: #2b0038;
    color: #fefefe;
    padding: 20px 0;
    width: 100%;
    box-sizing: border-box;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin: 0 auto;
    max-width: 1300px;
    padding: 0 20px;
}

.footer-container .heading {
    font-size: 25px;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(to right, #f70479, #cccccc);
    background: -webkit-linear-gradient(to right, #f70479, #cccccc);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.company-info {
    font-weight: 600;
    flex: 1 1 30%;
}

.company-info img {
    width: 36px;
    width: 36px;
    vertical-align: middle;
    margin-top: -5px;
}

.company-info p {
    line-height: 1.8;
    text-align: center;
}

.quick-links {
    flex: 1 1 30%;
}

.footer-ul {
    justify-items: center;
    align-items: center;
    text-align: center;
}

.footer-ul li a {
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s ease-in-out;
    position: relative;
}

.footer-ul li a::after {
    content: "";
    display: block;
    width: 0;
    height: 3px;
    background: #d76cc2; /* Color of the underline */
    transition: width 0.3s ease-in-out;
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
}

.footer-ul li a:hover {
    color: #ec685c;
}

.footer-ul li a:hover::after {
    width: 100%; /* Fully expand the underline */
}

.send-message {
    flex: 1 1 30%;
}

.form-group {
    margin-bottom: 15px;
}

.group1 {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.send-message input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
}

.send-message input,
.send-message textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

.send-message textarea {
    height: 50px;
    color: black;
}

.send-message button {
    height: 50px;
    background: -webkit-linear-gradient(to right, #f70479, #cccccc);
    background: linear-gradient(to right, #f70479, #cccccc);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 20px;
    font-weight: bold;
}

.social {
    font-size: 3.5rem;
    text-decoration: none;
    margin: 0 1rem;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.social a i {
    transition: transform 0.3s ease-in-out;
}

.copyright {
    color: #cccccc;
    padding: 0 20px;
    margin-top: 30px;
    font-weight: 900;
    text-align: center;
}

.quick-links ul,
.send-message form {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li,
.send-message button {
    margin-bottom: 10px;
}

.quick-links a,
.send-message button {
    text-decoration: none;
}

.social a:hover i {
    transform: translateY(-8px);
}

.social a {
    color: var(--secondary);
}

.social a.user:hover {
    color: #4af3b5;
}

.social a.message:hover {
    color: #d44638;
}

.social a.linkedin:hover {
    color: #0a66c2;
}

.social a.github:hover {
    color: #181717;
}

.social a.instagram:hover {
    color: #e1306c;
}

.social a.facebook:hover {
    color: #1877f2;
}

.social a.twitter:hover {
    color: #1da1f2;
}

.social a.discord:hover {
    color: #5865f2;
}

#progress {
    position: fixed;
    bottom: 20px;
    right: 10px;
    height: 50px;
    width: 50px;
    display: none;
    place-items: center;
    border-radius: 50%;
    transition: opacity 0.3s, background-color 0.3s;
    box-shadow: 4px 4px 6px 0 rgba(255, 255, 255, .3),
        -4px -4px 6px 0 rgba(116, 125, 136, .2),
        inset -4px -4px 6px 0 rgba(255, 255, 255, .2),
        inset 4px 4px 6px 0 rgba(0, 0, 0, .2);
    cursor: pointer;
}

#progress:hover {
    opacity: 1;
    background-color: #df87ef;
    animation: animate 1s linear infinite;
}

@keyframes animate {
    50% {
        transform: translateY(-8px);
    }
}

#progress-value {
    display: block;
    height: calc(100% - 15px);
    width: calc(100% - 15px);
    background-color: rgb(104, 98, 232);
    background: linear-gradient(90deg, rgb(159, 157, 235) 0%, rgb(212, 153, 222) 39%, rgb(253, 199, 134) 100%);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 26px;
    color: black;
}

/* Search Bar Css */

#searchBar {
    text-align: center;
    border-radius: 50px;
    margin: 4rem 4rem 0;
    color: white;
    width: 100%;
}

#searchBar h1 {
    font-family: Ubuntu;
    font-size: 4rem;
    text-shadow: 2px 2px 10px var(--light);
    margin-top: 16px;
}

#searchBar #search-container {
    position: relative;
    display: inline-block;
}

#searchBar button {
    font-size: 2.5rem;
    background: transparent;
    border-radius: 50px;
    color: rgb(60, 9, 92);
    margin: 1rem;
    background-color: rgb(248, 238, 254);
    padding: .7rem;
    width: 8rem;
    border-radius: 5rem;
    box-shadow: 2px 2px 2px black, 1px 1px 1px white;
}

#searchBar button:hover {
    transform: scale(1.05);
    border: 2px solid var(black);
    background: rgba(243, 231, 249, 0.881);
    box-shadow: 1px 1px 2px 1px rgba(15, 14, 17, 0.743);
}

#searchBar input {
    font-family: 'Poppins', sans-serif;
    border: 0;
    padding-left: 25px;
    height: 4rem;
    font-size: 2rem;
    text-align: center;
    border-radius: 2rem;
    width: 40rem;
    transition: all linear .2s;
    font-weight: 600;
    padding-right: 0 !important;
    box-shadow: 2px 2px 2px black, 1px 1px 1px white;
}

#searchBar input:hover {
    transform: scale(1.02);
    box-shadow: 1px 1px 2px 1px rgba(15, 14, 17, 0.743);
}

#searchBar .fa-search {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    color: #555555;
    font-size: 21px;
    transition: color 0.3s ease-in-out;
    cursor: pointer;
}

.no-results {
    display: none;
    padding-top: 50px;
    color: white;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.no-results h2 {
    text-align: center;
}

/* Error Page Css */

.error-section {
    height: 100vh;
}

#error-img {
    width: 640px;
    height: 450px;
    object-fit: cover;
    border-radius: 25px;
}

/* Media queries for responsiveness */

@media (min-width: 769px) and (max-width: 855px) {
    button#dark-mode-toggle {
        height: 32px;
        width: 32px;
        margin-top: 8px;
    }
}

@media (max-width: 786px) {
    #mySearch {
        height: 6rem;
        width: 50rem;
    }

    #error-img {
        width: 90vw;
        height: auto;
        object-fit: cover;
        border-radius: 25px;
    }
}

@media (max-width: 650px) {
    #searchBar input {
        width: 100%;
        font-size: 1.5rem;
    }
}

@media (max-width: 500px) {
    #mySearch {
        height: 5rem;
        width: 30rem;
        font-size: 1.6rem;
    }
}

@media only screen and (max-width: 768px) {
    .navbar {
        position: relative;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 5.3rem;
        flex-direction: column;
        background-color: rgba(5, 5, 5, 0.904);
        backdrop-filter: blur(6.5px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        height: 100vh;
        gap: 50px;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
        gap: 50px;
    }

    .nav-item {
        margin: 0.5rem 0 0;
        font-size: 21px;
    }

    nav li:hover {
        border-bottom: 0.4rem white solid;
        transition: 0.3s ease-in-out;
    }

    button#dark-mode-toggle {
        right: 45px;
    }

    .hamburger {
        display: block;
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
        cursor: pointer;
        z-index: 1000;
    }

    .hamburger .bar {
        display: block;
        width: 25px;
        height: 3px;
        background-color: #ffffff;
        margin: 5px auto;
        transition: all 0.3s ease-in-out;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .social {
        font-size: 2.5rem;
        text-decoration: none;
        transition: 0.3s ease-in-out;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
    }

    .footer-container {
        margin: 2px 3px;
    }

    .company-info,
    .quick-links,
    .send-message {
        margin-top: 8px;
        text-align: center;
        flex-basis: 100%;
    }
}

@media (max-width: 500px) {
    .company-info {
        flex: 1 1 100%; /* Make company info take full width */
        text-align: center;
        margin-bottom: 20px;
    }

    /* Split the quick-links into two columns */
    .footer-ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .send-message {
        flex: 1 1 100%;
        text-align: center;
    }

    .group1 {
        flex-direction: column;
    }

    .group1 input {
        margin-bottom: 5px;
    }

    .send-message input,
    .send-message textarea {
        width: 100%;
        resize: vertical;
    }

    .social {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .social a {
        font-size: 2.5rem;
    }
}

@media (max-width: 400px) {
    .paragraph {
        width: 100%;
        padding: 2px;
    }

    .box {
        width: 280px !important;
        margin: 15px !important;
    }
}



/* Popup for color selection */
.color-picker-popup {
    position: fixed;
    top: 50%; /* Adjust the top position */
    left: 50%;
    transform: translateX(-50%); /* Center it horizontally */
    width: 300px; /* Adjust the width if necessary */
    height: auto;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 300px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

#close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 30px;
    cursor: pointer;
}

.color-options {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.color-option {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);

}

.color-option:hover {
    opacity: 0.8;
}
