:root {
  --navy: #0a0a2e;
  --purple: #6439b9;
  --accent: #5b2dcc;
  --cyan: #00e5ff;
  --white: #ffffff;
  --light: #e0d7ff;
  --card: #13134a;
  --muted: #a89fd4;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: var(--navy);
  color: var(--white);
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 4px; }
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  position: sticky;
  top: 0;
  background: rgba(10,10,46,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  z-index: 999;
}
.logo { font-size: 1.4rem; font-weight: 700; color: var(--cyan); letter-spacing: 1px; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--light);
  text-decoration: none;
  font-size: 0.9rem;
  position: relative;
  transition: color 0.3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after { width: 100%; }
#home {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5rem 3rem;
  min-height: 92vh;
  position: relative;
  overflow: hidden;
}
#home::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108,63,197,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,63,197,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}
.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}
.hero-img-placeholder {
  width: 240px; height: 240px;
  border-radius: 50%;
  border: 4px solid var(--purple);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e1070, #6c3fc5);
  font-size: 3.5rem;
  animation: floatImg 5s ease-in-out infinite;
}
@keyframes floatImg {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
section { padding: 5rem 3rem; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: 1.9rem; color: var(--cyan); text-transform: uppercase; }
.section-line { width: 60px; height: 3px; background: linear-gradient(90deg, var(--purple), var(--cyan)); margin: 0.6rem auto 0; }
.cards-grid, .proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.svc-card, .proj-card {
  background: var(--card);
  border: 1px solid rgba(108,63,197,0.35);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  transition: all 0.3s;
}
.svc-card:hover, .proj-card:hover { transform: translateY(-8px); border-color: var(--cyan); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 860px; margin: 0 auto; }
.contact-card { background: var(--card); padding: 2.2rem; border-radius: 16px; }
.form-group { margin-bottom: 1rem; }
.form-group input, .form-group textarea {
  width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(108,63,197,0.4);
  color: white; padding: 0.75rem; border-radius: 8px; outline: none;
}
.btn-send { width: 100%; background: var(--purple); color: white; border: none; padding: 0.8rem; border-radius: 8px; cursor: pointer; }


.fade-up, .fade-left, .fade-right { opacity: 0; transition: all 0.7s ease; }
.fade-up { transform: translateY(35px); }
.fade-left { transform: translateX(-35px); }
.fade-right { transform: translateX(35px); }
.visible { opacity: 1; transform: translate(0,0); }

@media (max-width: 820px) {
  .contact-inner { grid-template-columns: 1fr; }
  #home { flex-direction: column-reverse; text-align: center; }
}