html {
	box-sizing: border-box;
}

*, *:before, *:after {
	box-sizing: inherit;
}


html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #333;
    cursor: default;
}

.container {
    max-width: 940px;
    margin: 0 auto;
    padding: 0 1rem;
}

header, footer {
    background: linear-gradient(to right, #333333, #1A4E8A);
}

header .container {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-between;
    /* align-items: center; */
    padding: 1.5rem 1rem;
}

header h3 {
    margin: 0;
    font-size: 2rem;
}

nav {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

nav a {
    color: #DDDDDD;
    margin-right: 1.5rem;
    text-decoration: none;
    font-weight: 500;
}

nav a:hover, footer a:hover {
    color: #E6EEF7;
    text-shadow: 0px 0px 10px #c6c6c6;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    width: 30px;
    height: 25px;
    z-index: 1000;
}

.hamburger span {
    height: 3px;
    background: white;
    margin: 4px 0;
    width: 100%;
    border-radius: 2px;
    transition: 0.4s ease;
}

/* ANIMACE NA KA˜A?A1EK */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.toggle {
    display: none;
    position: relative;
    width: 2.5rem;
    height: 2.5rem;
    inset: 0;
}

.toggle svg {
    position: absolute;
}

h2 {
    background: linear-gradient(to right, #1A4E8A, #5fa8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-section {
    padding: 2rem 0;
    text-align: center;
}

section {
    width: 90%;
}

.content-box {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: none;
}

.content-box.active {
    max-height: 1500px;
    opacity: 1;
    margin-top: 2rem;
    display: block;
    transform: translateY(0);
}

.content-box.hidden {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.5s ease, opacity 0.5s ease;
}

.content-box.active {
  max-height: 1500px; 
  opacity: 1;
  margin-top: 2rem;
  transition: max-height 0.5s ease, opacity 0.5s ease;
  overflow: visible;
}
#invelib.active {
  display: block;
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}


.service-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  margin-top: 1.5rem;
}

.service-box {
  background-color: #f9f9f9;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.service-box:hover {
  transform: translateY(-5px);
  background-color: #f1f8ff;
}




.pillars {
    display: flex;
    flex-direction: column;
    width: 90%;
    gap: 2rem;
    margin: 2rem auto;
}

.pillar {
    background-color: #f4f4f4;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0px 0px 20px 0px #9E9E9E;
}

.pillar h2 {
    color: #1A4E8A;
}

footer {
    color: white;
    padding: 2rem 1rem;
}

footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

footer h4 {
    margin-bottom: 1rem;
    color: #5fa8ff;
    text-shadow: 0 0 5px rgba(95, 168, 255, 0.5);
}

footer ul {
    list-style: none;
    padding: 0;
}

footer li {
    margin-bottom: 0.5rem;
}

footer a {
    color: #dddddd;
    text-decoration: none;
}

footer .container > div {
    position: relative;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.05);
}

footer .container > div:first-child {
    border-left: none;
}






.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.ml-2 {
    margin-left: .5rem;
}

.text-color\[\#dddddd\] {
    color: #dddddd;
}

.text-color\[\#b3d1f3\] {
    color: #b3d1f3;
}

.w-full {
    width: 100%;
}







@media (min-width: 768px) {
    .pillars {
        flex-direction: row;
        justify-content: center;
        width: 100%;
    }

    .pillar {
        width: 30%;
    }

    .hamburger {
        display: none;
    }

    nav {
        display: flex !important;
    }
}

@media (max-width: 767px) {
    nav {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        margin-left: 4rem;
    }

    nav a {
        margin-bottom: 1rem;
    }

    nav.active {
        display: flex;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
    }

    .sm-w-full {
        width: 100%;
    }
}