/* ==================== GENERAL ==================== */
:root {
    --teal: #50b6b0;
    --teal-strong: #70d0c9;
    --teal-dark: #137370;
    --orange: #f68359;
    --orange-mid: #e05c29;
    --orange-dark: #d34916;
    --dark: #031319;
    --dark-2: #062630;
    --dark-3: #031c26;
    --white: #fff;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font: 400 1rem/1.75 'Raleway', sans-serif;
    background: var(--dark);
    color: rgba(255, 255, 255, .9);
    min-width: 340px;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ==================== Typography ==================== */
h1,
h2,
h3,
h4,
h5,
h6,
p {
  font-family: 'Raleway', sans-serif;
  margin-bottom: 1em;
  color: rgba(255, 255, 255, .84);
}

h1 {
  font: 700 2rem/1.4 'Raleway', sans-serif;
}

h2 {
  font: 600 1.6rem/1.4 'Raleway', sans-serif;
}

h3 {
  font: 600 1.33rem/1.4 'Raleway', sans-serif;
}

h4 {
  font: 500 1.25rem/1.4 'Raleway', sans-serif;
}

h5 {
  font: 500 1.125rem/1.4 'Raleway', sans-serif;
}

h6 {
  font: 500 1rem/1.4 'Raleway', sans-serif;
  text-transform: uppercase;
  letter-spacing: .5px;
}

a {
    text-decoration: none;
    color: #fff;
    transition: all .3s;
}

p {
  margin-bottom: 1.5rem;
  font: 400 1rem/1.75 'Raleway', sans-serif;
  color: rgba(255, 255, 255, .75);
}

a:hover {
    color: var(--teal)
}

::selection {
  background-color: #e05c29;
  color: #fff;
}
::-moz-selection {
  background-color: #e05c29;
  color: #fff;
}

/* ==================== HEADER ==================== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--dark-2);
    padding: .75rem 0;
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: block;
    width: 150px;
    height: auto;
    margin-left: -.5rem;
    flex-shrink: 0;
}

/* Language button */
.lang-switch {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin-left: 64px;
    padding: .35rem .8rem;
    letter-spacing: -.5px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
    color: #032027;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    white-space: nowrap;
    z-index: 1;
}

.lang-switch:hover {
    background: linear-gradient(135deg, var(--teal-dark), var(--teal));
    color: #012027;
}

/* Hamburger */
.hamburger {
    width: 34px;
    height: 24px;
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2000;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: .3s;
}

.hamburger span:nth-child(1) {
    top: 0
}

.hamburger span:nth-child(2) {
    top: 10px
}

.hamburger span:nth-child(3) {
    top: 20px
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg)
}

.hamburger.active span:nth-child(2) {
    opacity: 0
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg)
}

/* ==================== NAV ==================== */
.navbar-custom {
    position: absolute;
    left: 0;
    top: 45px;
    width: 100%;
    background: rgba(5, 39, 53, .92);
    backdrop-filter: blur(6px);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.navbar-custom.open {
    max-height: 600px
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, .06)
}

.nav-link {
    display: block;
    width: 100%;
    padding: .9rem 1.25rem;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
}

.nav-link:hover {
    color: var(--teal)
}

/* Submenu mobile */
.sub-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    background: rgba(5, 39, 53, .85);
}

.sub-menu.open {
    max-height: 420px
}

.sub-menu li a, 
.sub-menu li .this-page {
    display: block;
    padding: .7rem 1.25rem;
    padding-left: calc(1.25rem + 16px);
    font-weight: 500;
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 560px;
    margin-bottom: -1px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    background: #031a25 url(img/intro.jpg) no-repeat center / cover scroll;
}
.hero.hero-websites {
    background-image: url(img/intro_websites.jpg);
}
.hero.hero-hosting {
    background-image: url(img/intro_hosting.jpg);
}
.hero.hero-servers {
    background-image: url(img/intro_servers.jpg);
}
.hero.hero-security {
    background-image: url(img/intro_security.jpg);
}
.hero.hero-networks {
    background-image: url(img/intro_networks.jpg);
}
.hero.hero-cameras {
    background-image: url(img/intro_cameras.jpg);
}
.hero.hero-software {
    background-image: url(img/intro_software.jpg);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(3, 26, 37, .7);
}

.hero .content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroFadeIn 1.2s ease-out forwards;
    animation-delay: .2s;
}
@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
}

.btn-cta {
    padding: .8rem 1.5rem;
    border-radius: .6rem;
    font-weight: 700;
    display: inline-block;
    margin: .4rem;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
    transition: .2s;
}

.hero .btn-cta {
  opacity: 0;
  transform: translateY(10px);
  animation: heroBtnsFade .9s ease-out forwards;
  animation-delay: .8s;
}

@keyframes heroBtnsFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Buttons */
.btn-orange {
    background: linear-gradient(135deg, var(--orange), var(--orange-dark));
}

.btn-orange:hover {
    background: linear-gradient(135deg, var(--orange-dark), var(--orange));
    filter: brightness(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .35);
}

.btn-teal {
    background: linear-gradient(135deg, var(--teal), var(--teal-dark));
}

.btn-teal:hover {
    background: linear-gradient(135deg, var(--teal-dark), var(--teal));
    filter: brightness(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, .35);
}

/* ==================== SECTIONS ==================== */
section {
    padding: 3rem .5rem;
}
.colored {
    position: relative;
    padding: 8em .5rem 6em;
    background: var(--dark-3);
    overflow: hidden;
}
.colored::before, 
.colored::after {
    position: absolute;
    left: -2%;
    display: block;
    width: 104%;
    height: 4%;
    content: '';
}
.colored::before {
    top: -2px;
    background: var(--dark-3) url(img/colored_before.svg) no-repeat center / cover;
}
.colored::after {
    bottom: -2px;
    background: var(--dark-3) url(img/colored_after.svg) no-repeat center / cover;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--teal);
}

/* Services grid */
.services-grid {
    display: grid;
    gap: 1rem;
    justify-content: center;
    grid-template-columns: 1fr;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
;
}

.service-card {
  display: block;
  text-align: center;
  background-color: #053041;
  color: #fff;
  border-radius: .9rem;
  padding: 2rem 1.25rem;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  opacity: 0;
  transform: translateY(20px) scale(0.96);
  transition: opacity .6s ease-out, transform .6s ease-out;
}

/* Animated state */
.service-card.reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.service-card h4 {
    margin: 0
}

.service-card i {
    font-size: 1.8rem;
    color: var(--teal);
    margin-bottom: .75rem;
    display: block;
}

.service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
    background-color: #064456;
}

#about p,
#contact p {
    color: rgba(255, 255, 255, .75)
}

.text-icon {
    display: inline-block;
    font-size: 1.25rem;
    color: var(--teal);
    vertical-align: middle;
    margin: 2px 4px -2px 0;
}



/* ==================== CONTACT ===================== */
.lead {
  letter-spacing: .3px;
}

.contact-form {
  border-radius: 1rem;
  padding: 1rem;
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(to bottom, #04373c, #064b50);
  border-top: 1px solid var(--teal-dark);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
}

.contact-form .form-control {
  background: #032229;
  border: 1px solid #0c5b60;
  color: rgba(255, 255, 255, .84);
  border-radius: .5rem;
  padding: .75rem 1rem;
  transition: all .3s ease-in-out;
}

.contact-form .form-control:focus {
  background: #043238;
  border-color: var(--teal);
  box-shadow: 0 0 0 .2rem rgba(80, 182, 176, .25);
  color: rgba(255, 255, 255, .9);
  outline: none;
}

.contact-form label {
  font-weight: 500;
  margin-bottom: .5rem;
  color: rgba(255, 255, 255, .84);
}

.btn-submit {
    display: inline-block;
    width: 66.67%;
}

/* Forms validation feedback */
.form-feedback {
  text-align: center;
  font-weight: 500;
  margin-top: 1rem;
  padding: .75rem 1rem;
  border-radius: .5rem;
  transition: opacity .3s ease-in-out, transform .3s ease-in-out;
  opacity: 1;
  transform: translateY(0);
}

.form-feedback.success {
  background: rgba(0, 64, 48, .4);
  color: #8effd4;
  border: 1px solid #00aa88;
}

.form-feedback.error {
  background: rgba(64, 0, 0, .4);
  color: #ff8080;
  border: 1px solid #cc3333;
}

/* Subtle fade-out */
.form-feedback.fade-out {
  opacity: 0;
  transform: translateY(-6px);
}

/* ===== INPUT VALIDATION STATES ===== */
.form-control.is-valid {
  border-color: #00aa88;
  box-shadow: 0 0 0 .2rem rgba(0, 170, 136, .25);
}

.form-control.is-invalid {
  border-color: #cc3333;
  box-shadow: 0 0 0 .2rem rgba(204, 51, 51, .25);
}

/* ================================================== */


footer {
    background: var(--dark-2);
    text-align: center;
    padding: 1.75rem 0;
    color: rgba(255, 255, 255, .75);
    font-size: .95rem;
}

.brand-sign {
    display: inline-block;
    width: 121px;
    height: 110px;
    vertical-align: middle;
    background: transparent url(img/logo_sign_white.svg) no-repeat center / cover;
    opacity: .67;
}

/* Back to top */
#backTop {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--teal-dark);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    z-index: 4000;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
    transition: .3s;
}

#backTop:hover {
    background: var(--teal);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .55);
}

.section-reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity .8s ease-out, transform .8s cubic-bezier(.22, .8, .2, 1);
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== MEDIA QUERIES ==================== */
@media(min-width:576px) {
    .hero h1 {
        margin-bottom: 4rem;
        font-size: 2.4rem
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 320px))
    }
    .service-card {
        width: 48%;
    }
    .colored::before, 
    .colored::after {
        height: 6%;
    }
}

@media(min-width:992px) {
    .logo {
        width: 175px;
    }

    .lang-switch {
        margin-left: 0;
    }

    .hamburger {
        display: none
    }

    .navbar-custom {
        position: static;
        max-height: none;
        background: transparent;
        backdrop-filter: none;
        border-top: none;
        width: auto;
        overflow: visible;
        margin-left: auto;
    }

    .nav-list {
        display: flex;
        gap: .25rem
    }

    .nav-item {
        border: none;
        position: relative
    }

    .nav-link {
        padding: .5rem 1rem;
        width: auto
    }

    .sub-menu {
        position: absolute;
        left: 0;
        top: 100%;
        width: 240px;
        padding: .35rem 0;
        border-radius: 0 0 .6rem .6rem;
        background: rgba(5, 39, 53, .96);
        backdrop-filter: blur(6px);
        box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: .2s;
        pointer-events: none;
        max-height: none;
        z-index: 3000;
    }

    .nav-item:hover>.sub-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .sub-menu li a, 
    .sub-menu li .this-page {
        padding: .6rem 1rem;
        padding-left: 1rem;
    }

    .this-page {
        color: var(--orange);
        cursor: default;
    }

    .hero {
        background-attachment: fixed;
    }
    .service-card {
        width: 31%;
    }
    .colored::before, 
    .colored::after {
        height: 10%;
    }
}

@media(min-width:1200px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 320px))
    }
}

@media(min-width:1400px) {
    .hero {
        min-height: 740px;
    }
    .hero h1 {
        margin-bottom: 5rem;
        font-size: 2.6rem
    }
    .services-grid {
        grid-template-columns: repeat(4, minmax(0, 320px))
    }
    .service-card {
        width: 24%;
    }
    .colored::before, 
    .colored::after {
        height: 14%;
    }
}