body {
    min-height: 100vh;
    font-family: 'Merriweather', sans-serif;
}

/* Fontul pentru titluri */
@font-face {
  font-family: 'Grotesk';
  src: url('/assets/fonts/grotesk.ttf') format('truetype');
}

/* Fontul pentru textul de corp (paragrafe) */
@font-face {
  font-family: 'Merriweather';
  src: url('/assets/fonts/merriweather.ttf') format('truetype');
}

.section {
  width: 100%;
  position: relative;
}

.section-limit {
  max-width: 1920px;
  margin: 0 auto;
}

.section-margin {
  margin-left: 50px;
  margin-right: 50px;
  position: relative;
}

.paragraph {
  font-family: 'Grotesk';
}



#matrixCanvas {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
}

/* navbar */

.header-site {
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 9999;
}

.header-limit {
  max-width: 1920px;
}

.header-margin {
  margin-left: 50px;
  margin-right: 50px;
  background-color: rgba(255,255,255, .3);
  height: 70px;
  backdrop-filter: blur(20px);
  border-radius: 30px;
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  margin-top: 10px;
}

.navbar-logo-img {
  height: 35px;
  margin-left: 30px;
  margin-top: 16px; 
  float: left;
}

.navbar-button {
  float: right;
  margin-right: 10px;
  margin-top: 10px;
  width: 50px;
  height: 50px;
  border-radius: 20px;
  transition: .3s ease-in-out;
  cursor: pointer;
  position: relative;
}

.navbar-button-img {
  width: 22px;
  height: 22px;
  opacity: .7;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: .3s ease-in-out;
}

.navbar-button:hover .navbar-button-img {
  opacity: 1;
}

.navbar-button:hover {
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}



/* ai */



.ai {
  width: 100%;
  position: fixed;
  bottom: 10px;
  left: 0;
  right: 0;
  z-index: 999;
}

.ai-limit {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  position: relative;
}

.ai-margin {
  width: 50px;
  max-width: 500px;
  height: 50px;
  position: absolute;
  right: 50px;
  background-color: #f2f2f2;
  backdrop-filter: blur(20px);
  box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
  bottom: 10px;
  border-radius: 20px;
  z-index: 998;
}

@property --gemini-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* New rotating conic-gradient glow */
.ai-glow {
    width: 70px;
    position: fixed;
    right: 40px; /* Centered */
    bottom: 10px;
    height: 60px;
    background: conic-gradient(
      from var(--gemini-angle),
      #4285F4, #DB4437, #F4B400, #0F9D58, #4285F4
    );
    animation: spin-glow 4s infinite linear;
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.6;
    z-index: 50; /* Kept z-index from previous version */
}

/* Keyframes to animate the --gemini-angle property */
@keyframes spin-glow {
  from {
    --gemini-angle: 0deg;
  }
  to {
    --gemini-angle: 360deg;
  }
}





/*================= section recomandate ===========*/
#section-recomandate {
  margin-bottom: 10px;
  overflow: auto;
  padding-top: 20px;
  padding-bottom: 20px;
}

.panel-recomandate {
  width: calc(25% - 7.5px);
  float: left;
  margin-right: 10px;
  background-color: #e5e5e5;
  height: 250px;
  border-radius: 30px;
  position: relative;
  transition: .2s ease-in-out;
}

.panel-recomandate:hover {
  transform: translateY(-2px);
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}

#panel-recomandate-4 {
  margin-right: 0;
}

.panel-recomandate-img {
  margin: 40px;
  height: 50px;
}

.panel-recomandate-img-2 {
  margin: 40px;
  height: 70px;
}

.panel-recomandate-titlu {
  font-size: 16px;
  text-transform: uppercase;
  font-family: 'Grotesk';
}

.panel-recomandate-description {
  font-size: 14px;
  font-family: 'Grotesk';
  margin-bottom: 0;
}

.panel-recomandate-margin {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
}




/*================== section 1 =====================*/
#section-1{
  position: relative;
  margin-top: 0;
}

.section-content {
  margin: 0 auto;

  /* 1. Centru: Alb puternic (0.9) -> Exterior: Transparent (0) */
  /* Am pus '70%' ca să înceapă să devină transparent mai devreme, nu chiar la margine */
  background: radial-gradient(circle, rgba(255,255,255, 0.9) 0%, rgba(255,255,255, 0) 100%);

  /* 2. Am pus padding peste tot ca să se vadă "haloul" în jurul textului */
  padding: 200px;

  width: fit-content;
  border-radius: 50%;
}

.section-1-title-p {
  font-size: 60px;
  text-align: center;
  font-family: 'Merriwether';
  max-width: 1200px;
  margin: 100px auto;
  line-height: 70px;
  margin-bottom: 0;
  margin-top: 0;
}

.section-1-subtitle-p {
  font-size: 18px;
  font-family: 'Grotesk';
  max-width: 800px;
  text-align: center;
  margin: 10px auto;
  margin-bottom: 0;
  width: fit-content;
}

.button-create-account {
  width: fit-content;
  padding: 10px 15px 10px 15px;
  border-radius: 30px;
  cursor: pointer;
  margin: 20px auto;
  background-color: #1c1c1c;
  transition: .2s ease-in-out;
  position: relative;
}

.button-create-account:hover {
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  background-color: #2a2a2a;
}

.button-border {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  transition: .2s ease-in-out;
  border-radius: 30px;
  border: 1px solid #1c1c1c;
  pointer-events: none;
}

.button-create-account:hover .button-border {
  position: absolute;
  left: -3px;
  top: -3px;
  right: -3px;
  bottom: -3px;
}

.button-create-account-p {
  font-size: 14px;
  font-family: 'Grotesk';
  color: white;
  margin-top: 0;
  margin-bottom: 0;
}

.section-1-panels {
  width: 100%;
  overflow: auto;
}

.section-1-panel {
  float: left;
  vertical-align: bottom;
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 10px;
}


#section-1-panel-1 {
  width: calc(25% - 6.66px);
  margin-right: 10px;
  height: 400px;
  background-color: #f4f4f4;
}


#section-1-panel-2 {
  width: calc(25% - 6.66px);
  margin-right: 10px;
  height: 400px;
  background-color: #f4f4f4;
  margin-right: 10px;
}


#section-1-panel-3 {
  width: calc(50% - 6.66px);
  height: 400px;
  background-color: #f4f4f4;
}

#section-1-panel-4 {
  width: calc(50% - 6.66px);
  height: 400px;
}


#section-1-panel-5 {
  width: calc(25% - 6.66px);
  margin-left: 10px;
  height: 400px;
  background-color: #f4f4f4;
}


#section-1-panel-6 {
  width: calc(25% - 6.66px);
  margin-left: 10px;
  height: 400px;
  background-color: #f4f4f4;
}


.section-1-panel-content {
  position: absolute;
  left: 20px;
  bottom: 20px;
  right: 20px;
  padding: 20px;
  background-color: rgba(255,255,255, .3);
  backdrop-filter: blur(20px);
  border: 1px solid #e5e5e5;
  border-radius: 10px;
}

.section-1-panel-3-title-p {
  font-size: 25px;
  font-family: 'Merriweather';
}

.section-1-panel-3-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-1-image {
  margin: 0px auto;
  width: 800px;
  height: 60px;
}




/* --- 1. FUNDALUL (Overlay) --- */
.modal-overlay {
    display: none; /* Ascuns implicit */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.7); /* Fundal intunecat */
    backdrop-filter: blur(8px); /* Blur puternic */

    /* Centrare perfecta */
    justify-content: center;
    align-items: center;
}

/* --- 2. CARDUL (Fereastra) --- */
.modal-card {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 30px; /* AICI e raza de 30px ceruta */
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    /* Animația de start implicita */
    animation: zoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-border {
  pointer-events: none;
  position: absolute;
  left: -4px;
  top: -4px;
  right: -4px;
  bottom: -4px;
  border: 1px solid white;
  border-radius: 34px;
}

/* --- 3. STILIZARE CONTINUT (Simplificat) --- */
.modal-header {
  background: #f1f5f9;
  position: absolute;
  left: 10px;
  top: 10px;
  right: 10px;
  border-radius: 20px;
}
.modal-header h3 { margin: 0; color: #0f172a; }
.modal-header p { margin: 0; font-size: 14px; color: #64748b;
  text-transform: uppercase;
  font-family: 'Grotesk';
  margin: 5px 10px 5px 10px;
  float: left;
}

.close-modal {
    font-size: 14px;
    margin: 5px 10px 5px 10px;
    cursor: pointer;
    color: #94a3b8;
    transition: 0.2s;
    float: right;
}
.close-modal:hover { color: #ef4444; }

.modal-form { padding: 10px; }
.form-row { display: flex; gap: 10px; margin-bottom: 10px; }
.form-group { width: 100%; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 10px 15px 10px 15px;
    border: 1px solid #e2e8f0; border-radius: 20px;
    background: #f8fafc; box-sizing: border-box;
    font-size: 14px;
}

.form-group label {
  font-size: 12px;
  font-family: 'Grotesk';
  margin-left: 10px;
}

.submit-btn {
    width: fit-content; padding: 10px 15px 10px 15px; background: #1c1c1c; color: white;
    border: none; border-radius: 20px; font-size: 13px;
    font-family: 'Grotesk';
    cursor: pointer;
}

.submit-btn:hover {
   
}

/* --- 4. CLASA PENTRU ÎNCHIDERE (Animatie) --- */
/* Aceasta clasa se adauga prin JS cand apesi X */
.modal-overlay.is-closing .modal-card {
    animation: zoomOut 0.3s ease-in forwards;
}

.modal-overlay.is-closing {
    animation: fadeOut 0.3s forwards;
}

#modal-form-1 {
  margin-top: 40px;
}

/* --- 5. DEFINIRE ANIMATII --- */
@keyframes zoomIn {
    0% { transform: scale(0.7); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes zoomOut {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.7); opacity: 0; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}




/*=================== section 2 =======================*/
.section-title {
  font-family: 'Merriwether';
  font-size: 35px;
}

.section-solutii-nav {
  overflow: hidden;
}

.section-solutii-nav-btn {
  background-color: #f4f4f4;
  float: left;
  margin-right: 10px;
  margin-bottom: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: .2s ease-in-out;
}

.section-solutii-nav-btn:hover {
  background-color: #e5e5e5;
}

.section-solutii-nav-btn-p {
  font-size: 12px;
  text-transform: uppercase;
  padding: 5px 10px 5px;
  font-family: 'Grotesk';
  width: fit-content;
  margin: 0;
}

        .section-solutii-nav-btn.active {
            background: #333;
            color: white;
        }
.solutii-content {
  width: 100%;
  height: 600px;
  background-color: #f4f4f4;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 30px;
  position: relative;
}


.solutie-text-side {
  position: absolute;
  left: 20px;
  top: 20px;
  border-radius: 10px;
  max-width: 500px;
  background-color: rgba(0,0,0, .4);
  color: white;
  padding: 20px;
  z-index: 10;
  backdrop-filter: blur(20px);
}

.solutie-img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*==================== section servicii ====================*/



    /* HEADER */
    .header-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-bottom: 50px;
        gap: 40px;
    }

    .header-title {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 3rem;
        font-weight: 300;
        letter-spacing: -1px;
        color: #161616;
        max-width: 500px;
        line-height: 1.1;
        margin: 0;
    }

    .header-desc {
        font-family: 'Merriweather', serif;
        font-size: 1.1rem;
        font-weight: 300;
        color: #393939;
        max-width: 500px;
        line-height: 1.6;
        margin: 0;
    }

    .header-desc strong {
        color: #4f5bf5; /* Culoarea de brand Intelligent Softs */
        font-weight: 400;
    }

    /* GRID CONTAINER */
    /* Folosim trucul cu gap: 1px pentru borduri interioare perfecte */
    .services-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        background-color: #c6c6c6; /* Culoarea liniilor dintre carduri */
        gap: 1px; /* Spațiul dintre carduri care creează liniile */
        border: 1px solid #c6c6c6; /* Bordura exterioară */
    }

    /* CARD STYLING */
    .service-card {
        position: relative;
        height: 240px;
        background-color: #ffffff;
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        text-decoration: none;
        color: #161616;
        transition: background-color 0.3s ease, color 0.3s ease;
        overflow: hidden; /* Asigură că textul nu iese afară */
    }

    /* HOVER EFFECT LOGIC */
    .card-content {
        position: relative;
        flex-grow: 1;
    }

    /* Titlul (Vizibil Default) */
    .card-title {
        font-family: 'Space Grotesk', sans-serif;
        font-size: 1.4rem;
        font-weight: 500;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        transition: opacity 0.3s ease, transform 0.3s ease;
        opacity: 1;
        transform: translateY(0);
    }

    /* Descrierea (Ascunsă Default - Vizibilă la Hover) */
    .card-desc {
        font-family: 'Merriweather', serif;
        font-size: 0.95rem;
        line-height: 1.5;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
        color: #1c1c1c;
        pointer-events: none; /* Să nu interfereze cu click-ul când e invizibil */
    }

    /* STARE DE HOVER PE CARD */
    .service-card:hover {
        background-color: #f4f4f4; /* Albastru Intelligent Softs */
        color: #ffffff;
        cursor: pointer;
    }

    /* Ascundem titlul la hover */
    .service-card:hover .card-title {
        opacity: 0;
        transform: translateY(-10px);
    }

    /* Arătăm descrierea la hover */
    .service-card:hover .card-desc {
        opacity: 1;
        transform: translateY(0);
    }

    /* FOOTER ICONS */
    .card-footer {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        z-index: 2; /* Deasupra conținutului */
    }

    .icon-main svg {
        width: 28px;
        height: 28px;
        fill: currentColor;
    }

    .icon-arrow svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
        transition: transform 0.2s ease;
    }

    .service-card:hover .icon-arrow svg {
        transform: translateX(5px);
        fill: #ffffff;
    }

    /* RESPONSIVE */
    @media (max-width: 900px) {
        .services-grid {
            grid-template-columns: repeat(2, 1fr); /* 2 pe rând */
        }
    }

    @media (max-width: 600px) {
        .services-grid {
            grid-template-columns: 1fr; /* 1 pe rând */
        }
        .header-title { font-size: 2rem; }
    }





.section-sisteme-p {
  font-size: 40px;
  max-width: 1200px;
  margin:  auto;
}


@media (max-width: 1405px) {
  .section-content {
    padding: 100px;
  }
}

@media (max-width: 1200px) {
  .header-margin {
    margin-left: 10px;
    margin-right: 10px;
  }

  .section-margin {
    margin-left: 10px;
    margin-right: 10px;
  }

  .section-content {
    padding-left: 50px;
    padding-right: 50px;
  }

  .section-1-title-p {
    font-size: 50px;
  }

  .section-1-image {
    width: 100%;
  }
}


@media (max-width: 1080px) {
  .panel-recomandate {
    width: calc(50% - 5px);
    margin-bottom: 10px;
  }

  #panel-recomandate-2 {
    margin-right: 0;
  }
}

@media (max-width: 950px) {
  .section-1-content {
    padding: 0;
  }
}

/* Mobile responsive */
@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .modal-card { margin: 10% auto; width: 95%; }
}

@media (max-width: 535px) {
  .panel-recomandate {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    height: 250px;
  }
}


/*=================== section newsletter ====================*/
#section-newsletter {
  padding-top: 10px;
  overflow: hidden;
}

.newsletter-img {
  width: calc(100% - 5px);
  height: 400px;
  object-fit: cover;
  border-radius: 30px;
}

.newsletter-left {
  width: 50%;
  float: left;
}

.newsletter-right {
  width: calc(50% - 5px);
  background-color: #f4f4f4;
  border-radius: 30px;
  height: 400px;
  float: right;
}

.panel-margin {
  margin: 20px;
}

.section-content-title-p {
  font-family: 'Merriweather';
  font-size: 25px;
}


/*=========================== section bottom ===========================*/

#section-bottom {
  padding-top: 10px;
}

.section-bottom-content {
  width: 100%;
  height: 500px;
  background-color: #f4f4f4;
  border-radius: 30px;
}

/*============================ section footer ========================*/

#section-footer {
  overflow: hidden;
  padding-top: 10px;
}

.footer-logo {
  float: left;
  margin-right: 10px;
}

.navbar-logo-footer-img {
  height: 34px;
}

.footer-link {
  width: fit-content;
  padding-left: 10px;
  padding-right: 10px;
  margin-right: 10px;
  float: left;
  background-color: #f4f4f4;
  border-radius: 30px;
  border: 1px solid #e5e5e5;
}

  .footer-link-p {
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
    margin-right: 10px;
    margin-top: 9.5px;
    margin-bottom: 9.5px;
    width: fit-content;
}


.footer-link-right {
  background-color: #f4f4f4;
  border-radius: 30px;
  width: fit-content;
  padding-left: 10px;
  padding-right: 10px;
  margin-right: 10px;
  float: left;
  color: black;
  text-decoration: none;
  border: 1px solid #e5e5e5;
}


/* =========================================
   AUTH PANEL (Meniul de Cont)
   ========================================= */

/* Containerul care ține butonul și meniul */
.auth-wrapper {
  float: right;
  height: 70px;
}

/* Panoul propriu-zis */
.auth-panel {
    display: none; /* Ascuns default */
    position: absolute;
    top: 80px; /* Sub buton */
    right: -10px; /* Aliniat la dreapta */
    width: 260px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.15); /* Umbră de "plutire" */
    z-index: 1000;

    /* Animație de intrare */
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Clasa activă (adăugată de JS) */
.auth-panel.is-active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Săgeata mică de sus care indică spre buton */
.auth-panel-arrow {
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    border-left: 1px solid #e2e8f0;
    transform: rotate(45deg);
}

/* Conținutul intern */
.auth-content {
    padding: 24px;
    text-align: center;
}

.auth-content h3 {
    margin: 0 0 4px 0;
    font-size: 1.1rem;
    color: #0f172a;
    font-weight: 700;
}

.auth-subtitle {
    margin: 0 0 20px 0;
    font-size: 0.85rem;
    color: #64748b;
}

/* Butoane */
.auth-btn-primary {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #0f172a;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 10px;
    transition: background 0.2s;
}

.auth-btn-primary:hover {
    background-color: #334155;
}

.auth-btn-secondary {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #f1f5f9;
    color: #334155;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.auth-btn-secondary:hover {
    background-color: #e2e8f0;
}

/* Link mic jos */
.auth-separator {
    height: 1px;
    background: #e2e8f0;
    margin: 16px 0;
}

.auth-link-small {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: none;
}
.auth-link-small:hover {
    color: #3b82f6;
    text-decoration: underline;
}

/* Starea activă a butonului (când meniul e deschis) */
.navbar-button.is-active {
    background-color: #f1f5f9; /* Gri deschis */
    border-color: #cbd5e1;     /* Contur puțin mai vizibil */
    transform: scale(0.95);    /* Efect de "apăsat" */
}

/* Asigură-te că butonul are o tranziție fină */
.navbar-button {
    transition: all 0.2s ease;
}
