
/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

section {
  scroll-margin-top: 80px; /* prilagodi visini headera */
}

html {
  scroll-behavior: smooth;
}

nav {
  background-color: #dbe4f5;       /* tamna pozadina */
  color: #080344;                 /* bijeli tekst */
  padding: 20px 20px;           /* unutarnji razmak */
  display: flex;                /* stavke u red */
  justify-content: space-between; /* razmak između lijevog i desnog dijela */
  align-items: center;          /* centriranje po visini */
  font-family: sans-serif;
}

/* Lista linkova */
nav ul {
  list-style: none;   /* bez točkica */
  margin: 0;
  padding: 0;
  display: flex;
  gap: 50px;          /* razmak između linkova */
}

nav a {
  color: rgb(13, 3, 49);
  text-decoration: none; /* bez podcrtavanja */
  font-weight: bold;
  font-size: 16px;
}

.nav a::before {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 1px;
  background: #f60a12;
  transition: width 0.3s;
}

.nav a:hover::before {
  width: 100%;
}

nav a:hover {
  color: #0ab007; /* promijeni boju kad pređeš mišem */
}

.logo{
  font-size: 20px;
  font-weight: bold;
}

footer {
  background-color:#f2f2f2;
  padding:20px; 
  text-align:center;
}


/* INTRO TYPING */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  width: 100%;
  min-height: 100svh;

  background-color: #07021e;
  background-image:
    linear-gradient(rgba(0, 255, 224, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 224, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;

  /* font-family: sans-serif; */
  font-family: "Courier New", monospace;
  color: #00ffe0;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(0, 255, 224, 0.15),
    transparent 75%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

/*
.hero::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,255,224,0.2), transparent 70%);
  border-radius: 50%;
  top: 20%;
  left: 10%;
  filter: blur(60px);
}

*/

.hero > * {
  position: relative;
  z-index: 1;
    box-sizing: border-box;
}

h1 {
  color: #222;
  margin-bottom: 40px;
}

.message-box {
  margin-bottom: 100px;
  font-size: 56px;
  font-weight: 600;
  color: #ffffff;
  transition: opacity 0.8s ease;
  opacity: 1;
  text-align:center;
  font-family: sans-serif;
}

.fade-out {
  opacity: 0;
}

#typedText {
  font-size: 28px;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  font-weight: bold;
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: rgb(0, 255, 224);
  margin-left: 3px;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

#finalText {
  opacity: 0;
  transform: translateY(0);
  transition: opacity 1.2s ease, transform 1.2s ease;
  font-size: 68px;
  line-height: 1.2;
  letter-spacing: 3px;
  color:#00ffe0;
}

#finalText.show {
  opacity: 1;
  transform: translateY(-10vh);
}

.search-typing {
  margin-bottom: 10px;
}

.search-box {
  border: 2px solid #00ffe0;
  border-radius: 25px;
  padding: 12px 20px;
  width: 400px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 12px rgba(0, 255, 224, 0.3);
  transform: translateY(10vh);
}




/* MAIN DIO*/
main {
  margin-top: 50px;
  padding: 20px;
  margin-bottom: 50px;
  font-family: sans-serif;
}

body {
  background-color: #080344;
  margin: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(0,255,224,0.15) 2px, transparent 3px),
    radial-gradient(circle at 60% 70%, rgba(0,255,224,0.15) 2px, transparent 3px),
    linear-gradient(90deg, rgba(157, 255, 0, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(0,255,224,0.03) 1px, transparent 1px);
  background-size: 120px 120px, 160px 160px, 60px 60px, 60px 60px;
  pointer-events: none;
  z-index: -1;
}



.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 350px);
  gap: 40px;
  justify-content: center; /* lijepo centrirano */
}


.service-card{
  position: relative;
  padding: 35px 30px;
  background:#07021e ;
  border: 2px solid #00ffe0;
  border-radius: 12px;
  transition: all 0.35s ease;
  overflow: hidden;
  font-family: sans-serif;
  height: 260px;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    hsla(173, 100%, 50%, 0.251),
    transparent
  );
  opacity: 0;
  animation: scanline 3s linear infinite;
}

@keyframes scanline {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 35px rgba(0,255,224,0.3);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card h3 {
  margin-bottom: 15px;
  font-size: 22px;
  text-align: center;
  color:#00ffe0;
}

.service-card p {
  font-size: 16px;
  color:#ffffff;
  line-height: 1.5;
}



.service-card.blue{
  background:rgba(0, 255, 225, 0.5) ;
  border: 2px solid #07021e;
}

.service-card.blue p {
  color:white;
}

.service-card.blue h3 {
  color:#07021e;
}

.terminal-title {
  position: relative;
  max-width: 1065px;
  width: 100%;
  margin: 50px auto;

  padding: clamp(40px, 6vw, 80px) clamp(16px, 4vw, 30px);

  background: #01c6af;
  border: 2px solid #ffffff;
  border-radius: 14px;

  text-align: center;
  font-family: sans-serif;
  overflow: hidden;
  box-sizing: border-box;
}



.terminal-title::before,
.terminal-title::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  height: 2px;
  background: rgba(255,255,255,0.6);
}

.terminal-title::before {
  top: 20px;
}

.terminal-title::after {
  bottom: 20px;
}




.terminal-title span{
  color:#0c1a02;
  font-size: 45px;
  margin-bottom: 70px;
  margin-top: 70px; 
}

/* .service-card p::before {
  content: "✓ ";
  color: #31dd0f;
  font-weight: bold;
} */

.service-icon {
  display: block;
  width: 30px;
  height: 30px;
  color: #00ffe0;
  margin: 0 auto;
  padding: 0;
}

.service-icon-frame{
  margin: 0 auto; 
  padding: 5px 5px;
  background:#07021e ;
  border: 2px solid #00ffe0;
  border-radius: 12px;
  height: 35px;
  width: 35px;
}

.about{
  margin-top: 200px;
  font-family: sans-serif;
  font-weight: bold;
  text-align: center;
}

.about-us{
  margin-top: 50px;
  color: #00ffe0;
  font-size: 50px;
  position: relative;
  /* font-family: "Courier New", monospace; */
  font-weight: bold;
}

.about-us::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background-color: #00ffe1;
  border-radius: 2px;
}


.about-text {
  padding-top: 50px;
  font-size: 18px;
  line-height: 1.75;
  color: #9ffdf2;
  max-width: 900px;
  margin: 0 auto;
  font-weight: 500;
  letter-spacing: 0.3px;
}




.process {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 50px;
}

.card {
  position: relative;       /* 🔑 */
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 2px solid #01c6af;
  border-radius: 12px;
  padding: 30px;
  background: #07021e;
  align-items: center;
  overflow: hidden;         /* 🔑 */
}

/* samo neparne kartice */
.card:nth-child(even)::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at top left,
    rgba(1, 255, 225, 0.35),
    transparent 45%
  );
  pointer-events: none;
}

.card:nth-child(odd)::before {
  content: "";
  position: absolute;
  bottom: -40%;
  right: -40%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at bottom right,
    rgba(1, 255, 225, 0.35),
    transparent 45%
  );
  pointer-events: none;
}



/* Zajednički stil */
.card-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Broj */
.card-number {
  font-size: 32px;
  font-weight: bold;
  color: #01c6af;
}

.card-left {
  align-items: flex-start;
  text-align: left;
}

.card-right {
  justify-self: end;
  text-align: left;
}

.card-side h3{
  color: white;
}

.card-side p{
  color: white;
}





.center-underline {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto;
  text-align: center;
}

/* .carda {
  position: relative;
  overflow: hidden;
  background:#07021e ;
  border: 2px solid #00ffe0;
  border-radius: 12px;
}

.carda:nth-child(odd):before {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at top left,
    rgba(1, 255, 225, 0.514),
    transparent 40%
  );
  pointer-events: none;
} */



/* Parent sekcija */
/* Globalno box-sizing */


/* Kontakt sekcija */
.contact-section {
  padding-block: 80px;
  padding-inline: clamp(20px, 5%, 60px); /* fluidni razmak sa strane */
  background-color: #0b0628;
}


/* Grid layout */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 520px); /* lijevo fleksibilno, desno kartica */
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* Info strana */
.contact-info {
  margin-top: 50px;
  color: #fff;
  text-align: center;
  align-items: center; 
  min-width: 0; /* sprječava prelijevanje */
}

.contact-info h2 {
  margin-bottom: 12px;
  font-size: 28px;
  font-family: 'Montserrat', sans-serif;
  color: #00ffe1;
}

.contact-info p {
  color: #94a3b8;
  font-size: 18px;
  margin-bottom: 20px;
}

.contact-meta {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #94a3b8;
  font-family: 'Open Sans', sans-serif;
}

.contact-meta a {
  color: #fff;
  text-decoration: none;
}

.contact-meta a:hover {
  color: #00ffe0;
}

/* Kartica (forma) */
.contact-card {
  max-width: 520px;
  width: 100%;
  background: #07021e;
  border: 1px solid #1e293b;
  border-radius: 16px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}


/* Gradient accent na kartici */
.contact-card::before {
  content: "";
  position: absolute;
  top: -40%;
  left: -40%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at top left, rgba(1, 198, 175, 0.35), transparent 45%);
  pointer-events: none;
}

/* Naslov i podnaslov */
.contact-title {
  color: #fff;
  margin-bottom: 6px;
}

.contact-subtitle {
  color: #94a3b8;
  margin-bottom: 30px;
  font-size: 0.95rem;
}

/* Inputi i textarea */
.input-group {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

input,
textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid #1e293b;
  border-radius: 10px;
  padding: 14px 16px;
  color: #fff;
  font-size: 0.95rem;
  resize: none;
}

input::placeholder,
textarea::placeholder {
  color: #64748b;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #01c6af;
  box-shadow: 0 0 0 1px rgba(1,198,175,0.4);
}

/* Button */
button {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  border-radius: 10px;
  border: none;
  background: linear-gradient(135deg, #01c6af, #00a99d);
  color: #07021e;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(1,198,175,0.35);
}

.popup {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #00ffe0;
  color: #000;
  padding: 14px 24px;
  border-radius: 30px;
  font-weight: bold;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 9999;
}

.popup.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


/* Responsivnost */
@media (max-width: 768px) {
    
  .contact-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
  }

  .contact-info,
  .contact-card {
    text-align: center;
    margin: 0 auto;
  }

  .message-box {
    font-size: 36px;
    margin-bottom: 40px;
    padding: 0 16px; /* da tekst ne dira rubove */
  }

    #finalText {
    font-size: 62px;
    letter-spacing: 1.5px;
    line-height: 1.25;
    text-align: center;
    padding: 0 16px;
  }

  #finalText.show {
    transform: translateY(-6vh);
  }

  .search-box {
    max-width: 340px;
    height: 44px;
    padding: 10px 16px;
    transform: translateY(6vh);
  }

  #typedText {
    font-size: 20px;
    letter-spacing: 0.5px;
  }

  .cursor {
    height: 1em;
    width: 2px;
  }
  
  .about-us {
    font-size: 50px;
    margin-top: 30px;
    text-align: center;
  }
  
  .about-text {
    padding-top: 30px;
    font-size: 15px;
    line-height: 1.7;
    margin: 0 24px;
  }
  
    nav ul {
    display: none;  /* sakrij default */
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20px;
    font-weight: bold;
  }

}


@media (max-width: 480px) {
  .message-box {
    font-size: 28px;
    margin-bottom: 30px;
  }

    #finalText {
    font-size: 38px;
    letter-spacing: 1px;
  }

  #finalText.show {
    transform: translateY(-4vh);
  }

  .search-box {
    max-width: 300px;
    height: 40px;
  }

  #typedText {
    font-size: 18px;
  }
  
  .about-us {
    font-size: 24px;
    margin-top: 20px;
  }
  
  .about-text {
    padding-top: 20px;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 16px;
  }
}







