* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: "Montserrat", sans-serif; 
    scroll-behavior: smooth; 
}
        
body {
    background-color: #111; 
    color: #fff; 
}
        
nav { 
    position: fixed; 
    width: 100%; 
    background: rgba(0, 0, 0, 0.8); 
    padding: 15px 0; 
    text-align: center; 
    z-index: 1000; 
}
        
nav ul { 
    list-style: none; 
}

nav ul li { 
    display: inline; 
    margin: 0 20px; 
}

nav ul li a { 
    color: #FFD700; 
    text-decoration: none; 
    font-size: 1.2rem; 
}

nav ul li a:hover { 
    color: #f4a100; 
}

.section { 
    padding: 50px 20px; 
    text-align: center; 
    min-height: fit-content; 
}

#home { 
    background: url('/image/cybersecurity-banner.jpg') no-repeat center center/cover; 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
    align-items: center; 
    height: 100vh;
}

#home div {
    display: flex;
    flex-direction: column;
    background-color: rgb(51, 51, 51, 0.8);
    padding: 4em;
    border-radius: 1em;

}

h1 { 
    font-size: 3rem; 
}

h2 { 
    font-size: 2rem; 
    color: #FFD700;
}

p { 
    font-size: 1.2rem; 
    max-width: 800px; 
    margin: 20px auto; 
}

.cta-button { 
    background: rgb(255, 215, 0); 
    color: #111; 
    padding: 15px 25px; 
    text-decoration: none; 
    border-radius: 5px; 
    font-size: 1.2rem; 
}

.cta-button:hover { 
    background: #f4a100; 
}

.service {
    background: #222; 
    padding: 2em;
    margin: 2em; 
    border-radius: 8px; 
    box-shadow: 0 0 10px 
    rgba(255, 215, 0, 0.3); 
}

#services{
    padding-top: 5em;
}

#p-service{
    min-width: 80%;
    margin-bottom: 0;
}

#about div{
    display: block;
    background-color: rgb(51, 51, 51, 0.8);
    height: fit-content;
    padding: 2em;
    width: fit-content;
    margin: auto;
    border-radius: 1em;
}

form input, form textarea, form button { 
    width: 80%; 
    padding: 15px; 
    margin: 10px 0; 
    border: none;
     border-radius: 5px; 
}

form input, form textarea { 
    background: #333; 
    color: #fff; 
}

form button { 
    background: hsl(51deg, 100%, 50%); 
    color: #111; 
    cursor: pointer; 
}

form button:hover { 
    background: #f4a100; 
}

footer {
    background: #000; 
    padding: 20px; 
    text-align: center; 
}

textarea{
    max-width: 80%;
    min-width: 80%;
    max-height: 500px;
    min-height: 45px;
}

.service-card {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

.card {
    margin: 1em 2em;
    width: 15em;
    height: 10em;
    background: rgb(45, 45, 45);
    transition: all 0.4s;
    border-radius: 10px;
    box-shadow: 0px 0px 10px 5px  rgba(0, 0, 0, 0.705);
    font-size: 30px;
    font-weight: 900;
}
  
.card:hover {
    border-radius: 15px;
    cursor: pointer;
    transform: scale(1.2);
    box-shadow: 0px 0px 10px 5px  rgba(0, 0, 0, 0.705);
    background: rgb(0, 0, 0);
}
  
.first-content {
    height: 100%;
    width: 100%;
    padding: 0.5em;
    transition: all 0.4s;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    border-radius: 15px;
}
  
.card:hover .first-content {
    height: 0px;
    opacity: 0;
}
  
.second-content {
    height: 0%;
    width: 100%;
    padding: 0.5em;
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    transition: all 0.4s;
    font-size: 0px;
}
  
.second-content p {
    margin-bottom: 5em;
}

.card:hover .second-content {
    opacity: 1;
    height: 100%;
    font-size: 1.8rem;
}

.light-mode {
    background-color: #fff;
    color: #111;
}

.light-mode nav {
    background: rgba(255, 255, 255);
}

.light-mode nav ul li a {
    color: #111;
}

.light-mode nav ul li a:hover {
    color: #f4a100;
}

.light-mode .section {
    background-color: #f5f5f5;
}

.light-mode #home div {
    background-color: rgba(240, 240, 240, 0.8);
}

.light-mode h2 {
    color: #222;
}

.light-mode .cta-button {
    background: #111;
    color: #FFD700;
}

.light-mode .cta-button:hover {
    background: #f4a100;
}

.light-mode .service {
    background: #ddd;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.light-mode #about div {
    background-color: rgba(220, 220, 220, 0.9);
}

.light-mode form input,
.light-mode form textarea {
    background: #fff;
    color: #111;
    border: 1px solid #ccc;
}

.light-mode form button {
    background: #222;
    color: #fff;
}

.light-mode form button:hover {
    background: #444;
}

.light-mode footer {
    background: #eee;
    color: #111;
}

.light-mode .card {
    background: #fff;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.2);
}

.light-mode .card:hover {
    background: #ddd;
    box-shadow: 0px 0px 10px 5px rgba(0, 0, 0, 0.3);
}

.light-mode .second-content {
    color: #111;
}


nav .ui-switch{
    position: absolute;
    right: 20px;
    top: 15px;
}

.ui-switch {
    --switch-bg: rgb(135, 150, 165);
    --switch-width: 48px;
    --switch-height: 20px;
    --circle-diameter: 32px;
    --circle-bg: rgb(255, 215, 0);
    --circle-inset: calc((var(--circle-diameter) - var(--switch-height)) / 2);
}

.ui-switch input {
    display: none;
}

.slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: var(--switch-width);
    height: var(--switch-height);
    background: var(--switch-bg);
    border-radius: 999px;
    position: relative;
    cursor: pointer;
}

.slider .circle {
    top: calc(var(--circle-inset) * -1);
    left: 0;
    width: var(--circle-diameter);
    height: var(--circle-diameter);
    position: absolute;
    background: var(--circle-bg);
    border-radius: inherit;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTkuMzA1IDEuNjY3VjMuNzVoMS4zODlWMS42NjdoLTEuMzl6bS00LjcwNyAxLjk1bC0uOTgyLjk4Mkw1LjA5IDYuMDcybC45ODItLjk4Mi0xLjQ3My0xLjQ3M3ptMTAuODAyIDBMMTMuOTI3IDUuMDlsLjk4Mi45ODIgMS40NzMtMS40NzMtLjk4Mi0uOTgyek0xMCA1LjEzOWE0Ljg3MiA0Ljg3MiAwIDAwLTQuODYyIDQuODZBNC44NzIgNC44NzIgMCAwMDEwIDE0Ljg2MiA0Ljg3MiA0Ljg3MiAwIDAwMTQuODYgMTAgNC44NzIgNC44NzIgMCAwMDEwIDUuMTM5em0wIDEuMzg5QTMuNDYyIDMuNDYyIDAgMDExMy40NzEgMTBhMy40NjIgMy40NjIgMCAwMS0zLjQ3MyAzLjQ3MkEzLjQ2MiAzLjQ2MiAwIDAxNi41MjcgMTAgMy40NjIgMy40NjIgMCAwMTEwIDYuNTI4ek0xLjY2NSA5LjMwNXYxLjM5aDIuMDgzdi0xLjM5SDEuNjY2em0xNC41ODMgMHYxLjM5aDIuMDg0di0xLjM5aC0yLjA4NHpNNS4wOSAxMy45MjhMMy42MTYgMTUuNGwuOTgyLjk4MiAxLjQ3My0xLjQ3My0uOTgyLS45ODJ6bTkuODIgMGwtLjk4Mi45ODIgMS40NzMgMS40NzMuOTgyLS45ODItMS40NzMtMS40NzN6TTkuMzA1IDE2LjI1djIuMDgzaDEuMzg5VjE2LjI1aC0xLjM5eiIgLz4KPC9zdmc+");
    background-repeat: no-repeat;
    background-position: center center;
    -webkit-transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    -o-transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    transition: left 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms, -webkit-transform 150ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    box-shadow: 0px 2px 1px -1px rgba(0,0,0,0.2), 0px 1px 1px 0px rgba(0,0,0,0.14), 0px 1px 3px 0px rgba(0,0,0,0.12);
}

.slider .circle::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.75);
    border-radius: inherit;
    -webkit-transition: all 500ms;
    -o-transition: all 500ms;
    transition: all 500ms;
    opacity: 0;
}


.ui-switch input:checked+.slider .circle {
    left: calc(100% - var(--circle-diameter));
    background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGhlaWdodD0iMjAiIHdpZHRoPSIyMCIgdmlld0JveD0iMCAwIDIwIDIwIj4KICAgIDxwYXRoIGZpbGw9IiNmZmYiCiAgICAgICAgZD0iTTQuMiAyLjVsLS43IDEuOC0xLjguNyAxLjguNy43IDEuOC42LTEuOEw2LjcgNWwtMS45LS43LS42LTEuOHptMTUgOC4zYTYuNyA2LjcgMCAxMS02LjYtNi42IDUuOCA1LjggMCAwMDYuNiA2LjZ6IiAvPgo8L3N2Zz4=");
    background-color: rgb(0, 56, 146);
}

.ui-switch input:active+.slider .circle::before {
    -webkit-transition: 0s;
    -o-transition: 0s;
    transition: 0s;
    opacity: 1;
    width: 0;
    height: 0;
}

@media screen and (max-width: 700px) {
    nav .ui-switch {
        right: 20px;
        top: 40px;
    }

    nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 80%;
    }

    nav ul li {
        margin: 0.5em 2em;
    }

    #services {
        padding-top: 7em;
    }

    .card {
        margin: 2em 0.5em;
    }

    .card .second-content p {
        font-size: 0.5em;
        margin: 0;
    }
}