* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Outfit", sans-serif;
}

:root {
  --bg-color: #030305;
  --second-bg-color: rgba(255, 255, 255, 0.02);
  --text-color: #e2e8f0;
  --main-color: #3b82f6; /* Modern sleek blue */
  --main-color-hover: #60a5fa;
  --glow-color: rgba(59, 130, 246, 0.4);
}

html {
  font-size: 60%;
  overflow-x: hidden;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  position: relative;
}

/* Three.js Canvas */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

/* Glassmorphism Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 3rem 12%;
  background: rgba(3, 3, 5, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: all 0.3s ease;
}

.logo {
  font-size: 2.5rem;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: 0.3s ease;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--main-color);
}

.navbar a {
  font-size: 1.6rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 500;
  transition: 0.3s ease;
  position: relative;
}

.navbar a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--main-color);
  transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.navbar a:hover,
.navbar a.active {
  color: #fff;
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--text-color);
  display: none;
  cursor: pointer;
}

section {
  min-height: 100vh;
  padding: 12rem 12% 10rem;
}

/* Hero Section */
.home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5rem;
  padding-top: 18rem;
}

.home-content {
  display: flex;
  flex-direction: column;
  max-width: 60rem;
}

.home-content h3 {
  font-size: 3rem;
  font-weight: 600;
  color: var(--main-color);
  margin-bottom: 1rem;
}

.home-content h1 {
  font-size: 6.5rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -1.5px;
}

.home-content h1 span {
  color: var(--main-color);
  background: linear-gradient(to right, var(--main-color), #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-content p {
  font-size: 1.6rem;
  line-height: 1.7;
  color: #94a3b8;
  margin-bottom: 3rem;
  font-weight: 300;
}

.home-img img {
  width: 40rem;
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 0 40px var(--glow-color);
  border: 1px solid rgba(255,255,255,0.1);
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 2.2rem;
  border-radius: 50%;
  color: var(--text-color);
  margin-right: 1.5rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.social-icons a:hover {
  background: var(--main-color);
  color: #fff;
  transform: translateY(-5px);
  border-color: var(--main-color);
  box-shadow: 0 10px 20px var(--glow-color);
}

.btn-group {
  margin-top: 2rem;
  display: flex;
  gap: 2rem;
}

.btn {
  display: inline-block;
  padding: 1.4rem 3.5rem;
  background: var(--main-color);
  color: #fff;
  border-radius: 3rem;
  font-size: 1.6rem;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
  text-align: center;
}

.btn:hover {
  background: var(--main-color-hover);
  box-shadow: 0 10px 25px var(--glow-color);
  transform: translateY(-3px);
}

/* Headings */
.heading {
  font-size: 5rem;
  text-align: center;
  margin-bottom: 6rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: -1px;
}

/* Products Section */
.products {
  background: transparent;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(35rem, 1fr));
  gap: 4rem;
  justify-content: center;
}

.product-card {
  background: var(--second-bg-color);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 2.4rem;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.product-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.product-img-wrapper {
  width: 100%;
  border-radius: 1.6rem;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.product-img {
  width: 100%;
  height: 25rem;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.service-info h4 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
}

.service-info p {
  font-size: 1.5rem;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  flex-grow: 1;
}

.btn-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: auto;
}

.btn-container .btn {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-container .btn:hover {
  background: var(--main-color);
  border-color: var(--main-color);
}

/* Contact Section */
.contact {
  background: transparent;
}

.contact form {
  max-width: 80rem;
  margin: 0 auto;
  text-align: center;
  background: var(--second-bg-color);
  padding: 5rem;
  border-radius: 2.4rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.input-group {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.input-box {
  width: 100%;
  display: flex;
  gap: 2rem;
}

.contact form input,
.contact form textarea {
  width: 100%;
  padding: 1.8rem;
  font-size: 1.6rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
  transition: all 0.3s ease;
  font-family: 'Outfit', sans-serif;
}

.contact form input:focus,
.contact form textarea:focus {
  border-color: var(--main-color);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.contact form textarea {
  resize: none;
  height: 20rem;
}

.contact form .btn {
  width: auto;
  min-width: 20rem;
  margin-top: 1rem;
}

/* Footer */
.footer {
  padding: 6rem 12% 4rem;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer .social {
  margin-bottom: 3rem;
}

.footer .social a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4rem;
  height: 4rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  font-size: 2rem;
  border-radius: 50%;
  color: var(--text-color);
  margin: 0 1rem;
  transition: all 0.3s ease;
}

.footer .social a:hover {
  background: var(--main-color);
  color: #fff;
  border-color: var(--main-color);
  transform: translateY(-3px);
}

.footer ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.footer ul li a {
  font-size: 1.5rem;
  color: #94a3b8;
  transition: color 0.3s ease;
}

.footer ul li a:hover {
  color: #fff;
}

.copyright {
  font-size: 1.4rem;
  color: #64748b;
}

/* Media Queries */
@media (max-width: 1200px) {
  html { font-size: 55%; }
  section { padding: 10rem 5% 8rem; }
  .header { padding: 2rem 5%; }
  .footer { padding: 4rem 5%; }
}

@media (max-width: 991px) {
  .home { flex-direction: column; text-align: center; gap: 4rem; padding-top: 14rem; }
  .home-content { align-items: center; }
  .home-content h1 { font-size: 5rem; }
  .home-img img { width: 35rem; }
  .navbar { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: rgba(3, 3, 5, 0.95); padding: 2rem; flex-direction: column; backdrop-filter: blur(20px); }
  .navbar.active { display: flex; }
  .navbar a { margin: 1.5rem 0; font-size: 2rem; }
  #menu-icon { display: block; }
  .input-box { flex-direction: column; gap: 0; }
}

@media (max-width: 600px) {
  html { font-size: 50%; }
  .home-content h1 { font-size: 4rem; }
  .home-img img { width: 100%; max-width: 30rem; }
  .contact form { padding: 3rem 2rem; }
  .footer ul { gap: 1.5rem; flex-direction: column; }
}
