:root {
  --primary-color: #2c7bfe;
  --text-color: #666;
  --white: #fff;
  --black: #000;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
  font-family: 'Poppins', sans-serif;
}

/* Responsive typography */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 2.8vw, 1.6rem); }
h5 { font-size: clamp(1rem, 2.5vw, 1.4rem); }
p, li, a, input, textarea, button, label {
  font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Hero section */
.vh {
  width: 100%;
  min-height: 100vh;
  background-image: url(https://images.unsplash.com/photo-1504805572947-34fad45aed93?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80);
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Improved Navbar Styles */
.navbar {
  width: 100%;
  padding: 15px 5%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.navbar ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.navbar ul li {
  position: relative;
}

.navbar ul li a {
  text-decoration: none;
  text-transform: uppercase;
  color: white;
  font-size: clamp(0.8rem, 1.5vw, 1.1rem);
  font-weight: 500;
  letter-spacing: 1px;
  padding: 5px 0;
  transition: color 0.3s ease;
}

.navbar ul li a:hover {
  color: #2c7bfe;
}

.navbar ul li::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #2c7bfe;
  bottom: 0;
  left: 0;
  transition: width 0.3s ease;
}

.navbar ul li:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
  color: white;
  font-size: 1.5rem;
  position: fixed;
  top: 15px;
  right: 20px;
  z-index: 1001;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .navbar {
    padding: 15px;
  }

  .navbar ul {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transition: left 0.3s ease;
  }

  .navbar ul.active {
    left: 0;
  }

  .navbar ul li a {
    font-size: 1.2rem;
  }
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--white);
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  background: rgba(0,0,0,0.7);
  padding: 10px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .navbar ul {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: rgba(0,0,0,0.9);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    padding: 60px 20px;
    align-items: center;
    justify-content: center;
  }
  
  .navbar ul.active {
    display: flex;
  }
  
  .navbar ul li {
    margin: 15px 0;
  }
}

/* About section */
.about {
  padding: 50px 5%;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about h1 {
  text-align: center;
  text-decoration: underline;
  margin-bottom: 30px;
  font-family: "Times New Roman", Times, serif;
}

.about p {
  margin: 15px 0;
  text-align: center;
}

/* Services section */
.folw {
  width: 100%;
  min-height: 100vh;
  padding: 50px 5%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  width: 100%;
}

.section-heading {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 30px;
  font-family: "Times New Roman", Times, serif;
  text-decoration: underline;
}

.column {
  width: 100%;
  padding: 0 1em 1em 1em;
  text-align: center;
}

.card {
  width: 100%;
  height: 100%;
  padding: 2em 1.5em;
  background: linear-gradient(#ffffff 50%, var(--primary-color) 50%);
  background-size: 100% 200%;
  background-position: 0 2.5%;
  border-radius: 5px;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: 0.5s;
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1f194c;
  margin: 1em 0;
}

.card p {
  color: #575a7b;
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.03em;
}

.icon-wrapper {
  background-color: var(--primary-color);
  position: relative;
  margin: auto;
  font-size: 30px;
  height: 2.5em;
  width: 2.5em;
  color: var(--white);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: 0.5s;
}

.card:hover {
  background-position: 0 100%;
}

.card:hover .icon-wrapper {
  background-color: var(--white);
  color: var(--primary-color);
}

.card:hover h3 {
  color: var(--white);
}

.card:hover p {
  color: #f0f0f0;
}

/* Moto section */
.moto {
  background-image: url(https://images.unsplash.com/photo-1470049384172-927891aad5e9?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80);
  background-attachment: fixed;
  margin: 50px 0;
  background-size: cover;
  height: auto;
  width: 100%;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 5%;
  position: relative;
}

.moto h1 {
  color: var(--white);
  text-align: center;
  font-family: "Kaushan Script", cursive;
}

/* Contact section */
.contact-us {
  width: 95%;
  margin: 50px auto;
  padding-bottom: 50px;
  font-family: "Poppins", sans-serif;
}

.contact-us p {
  font-weight: 900;
  margin-bottom: 20px;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-left, .contact-right {
  flex: 1;
  padding: 20px;
}

.contact-left h4 {
  font-weight: 200;
  padding-bottom: 20px;
}

.input-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  gap: 20px;
}

.input-group {
  flex: 1;
}

input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  outline: none;
  padding: 10px 0;
}

textarea {
  width: 100%;
  border: 1px solid #ccc;
  outline: none;
  padding: 10px;
  box-sizing: border-box;
  min-height: 150px;
}

label {
  margin-bottom: 6px;
  display: block;
  color: #1c00b5;
}

button {
  background: #1c00b5;
  width: 100px;
  border: none;
  outline: none;
  height: 35px;
  border-radius: 30px;
  margin-top: 20px;
  color: var(--white);
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: #14008c;
}

.contact-right {
  background: #1a63c9;
  border-radius: 10px;
}

.contact-right h5 {
  color: var(--white);
  font-weight: 200;
  margin-bottom: 30px;
}

tr td:first-child {
  color: var(--white);
  padding-right: 20px;
}

tr td {
  color: var(--white);
  padding-top: 20px;
}

/* Footer */
.footer-links {
  padding: 20px 5%;
  background-color: #fffcfc;
}

#links {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px 0;
}

#links a {
  color: inherit;
  transition: transform 0.3s;
}

#links a:hover {
  transform: translateY(-5px);
}

#links a:hover i {
  color: var(--black);
}

.fa-twitter {
  color: #00acee;
}
.fa-github {
  color: #171515;
}
.fa-linkedin {
  color: #0072b1;
}
.fa-discord {
  color: #7289da;
}

.footer {
  padding: 5px;
  text-align: center;
  word-spacing: 2px;
  text-transform: capitalize;
}

.footer span {
  text-transform: uppercase;
  opacity: 0.4;
  font-weight: 200;
}

/* Responsive adjustments */
@media (min-width: 768px) {
  .contact-box {
    flex-direction: row;
  }
  
  .input-row {
    flex-direction: row;
  }
  
  .about, .folw {
    padding: 50px 10%;
  }
  
  .moto h1 {
    padding: 0 10%;
  }
}

@media (min-width: 1024px) {
  .about, .folw {
    padding: 50px 15%;
  }
  
  .moto h1 {
    padding: 0 15%;
  }
}