* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: "Roboto Condensed", sans-serif;
    font-size: 16px;
}

body {
    color: #222;
}

header {
    background-color: #333;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
  display: flex;
  gap: 7px;
  align-items: center;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}

.fa-pencil {
  color: white;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 9px;
    padding: 0;
}

.form-nav-links {
    color: #4A8082;    
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.form-nav-links:hover {
    color: #3d6769;
}

.form-nav-links::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #10d1d8;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.form-nav-links:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

li > .form-nav-links  {
  color: #fff;
}

.mobile-menu-button {
  display: none;
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  background: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 50px;
  height: 50px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.mobile-menu-button:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.mobile-menu-button:active {
  transform: translateY(0);
}

.mobile-menu-button span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: #333;
  border-radius: 1px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-button.dark {
  background: #1f2937;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mobile-menu-button.dark span {
  background-color: #fff;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background-image: linear-gradient(to right, #2d2d2f6b, #d9edff1a);
    background-color: #2d2d2f6b;
    color: #fff;
}

.hero h1 {
    font-size: 3rem;
    transform: skewX(-23deg);
}

.hero p {
    font-size: 1.25rem;
    margin: 1rem 0 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta-button {
    background-color: #333;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #ff6600;
}

.features {
    padding: 2rem;
    text-align: center;
}

.features h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.feature-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.card {
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 300px;
    text-align: center;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.feature-link {
    background-color: #333;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.feature-link:hover {
    background-color: #ff6600;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: #333;
    color: #fff;
    margin-top: 2rem;
}

@media (min-width: 768px) {
  #navLinks > .logo   {
    display: none;
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  
  nav {
    position: relative;
  }

  .mobile-menu-button {
    display: flex; 
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: #333;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 2rem 2rem;
    gap: 0;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid #555;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-button {
    width: 200px;
  }
}

@media (max-width: 480px) {
  .mobile-menu-button {
    top: 0.75rem;
    right: 0.75rem;
    width: 45px;
    height: 45px;
  }
  
  .nav-links {
    width: 100%;
    right: -100%;
  }
  
  .hero {
    padding: 2rem 1rem;
  }
  
  .features {
    padding: 1rem;
  }
  
  .card {
    width: 100%;
    max-width: 300px;
  }
}

@keyframes animate {
    0%{
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }
    100%{
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    margin: 0;
    padding: 0;
    background: #4e54c8;
    overflow: hidden;
    z-index: -1;
}

.background li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 19s linear infinite;
}
.background li:nth-child(0) {
    left: 6%;
    width: 109px;
    height: 109px;
    bottom: -109px;
    animation-delay: 1s;
}
.background li:nth-child(1) {
    left: 71%;
    width: 174px;
    height: 174px;
    bottom: -174px;
    animation-delay: 4s;
}
.background li:nth-child(2) {
    left: 26%;
    width: 191px;
    height: 191px;
    bottom: -191px;
    animation-delay: 7s;
}
.background li:nth-child(3) {
    left: 82%;
    width: 110px;
    height: 110px;
    bottom: -110px;
    animation-delay: 5s;
}
.background li:nth-child(4) {
    left: 17%;
    width: 159px;
    height: 159px;
    bottom: -159px;
    animation-delay: 4s;
}
.background li:nth-child(5) {
    left: 37%;
    width: 191px;
    height: 191px;
    bottom: -191px;
    animation-delay: 11s;
}
.background li:nth-child(6) {
    left: 78%;
    width: 152px;
    height: 152px;
    bottom: -152px;
    animation-delay: 4s;
}
.background li:nth-child(7) {
    left: 75%;
    width: 139px;
    height: 139px;
    bottom: -139px;
    animation-delay: 17s;
}
.background li:nth-child(8) {
    left: 41%;
    width: 123px;
    height: 123px;
    bottom: -123px;
    animation-delay: 10s;
}
.background li:nth-child(9) {
    left: 88%;
    width: 183px;
    height: 183px;
    bottom: -183px;
    animation-delay: 1s;
}    

.error-message {
    width: 92%; 
    margin: 0px auto; 
    padding: 10px; 
    border: 1px solid #a94442; 
    color: #a94442; 
    background: #f2dede; 
    border-radius: 5px; 
    text-align: left;
}

.mobile-menu-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: #f4da02d4;
    width: 100%;
}

.mobile-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    font-size: 1.2rem;
}

.mobile-logo a {
    color: #333;
    text-decoration: none;
}

.mobile-logo .fa-pencil {
    color: #262826;
}

.mobile-close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #262424;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.mobile-close-button:hover {
    background: #f8f9fa;
    color: #333;
}

.mobile-close-button:focus {
    outline: 2px solid #4CAF50;
    outline-offset: 2px;
}

.nav-items {
    padding: 1rem;
}

@media (max-width: 768px) {
    .mobile-menu-header {
        display: flex;
        position: sticky;
        top: 0;
        z-index: 1001;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: #141315f7;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        padding: 0;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-items {
        flex: 1;
        overflow-y: auto;
        padding: 0;
        width: 100%;
    }
    
    .nav-items li {
        margin: 0;
        border-bottom: 1px solid rgb(211, 247, 10);
    }
    
    .nav-items a {
        display: block;
        padding: 1rem 1.5rem;
        text-decoration: none;
        color: white;
        transition: background-color 0.2s;
        border-radius: 0;
        width: 100%;
    }
    
    .nav-items a:hover {
        background: #261e84d9;
        padding-left: 1rem;
        color: #7be5a0;
    }
    
    .nav-links > .logo:not(.mobile-logo) {
        display: none;
    }
    
    .mobile-menu-button.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-button.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-button.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.no-scroll {
    overflow: hidden;
}

@media (min-width: 769px) {
    .mobile-menu-header,
    .mobile-close-button {
        display: none !important;
    }
    
    .nav-links {
        display: flex !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .nav-items {
        display: flex;
        flex-direction: row;
        padding: 0;
        gap: 31px;
    }
}