:root {
  --bg-color: #030305;
  --bg-secondary: #0a0a12;
  --text-main: #f0f0f0;
  --text-muted: #94a3b8;
  --accent-primary: #00f3ff;
  /* Neon Cyan */
  --accent-secondary: #7000ff;
  /* Electric Purple */
  --accent-glow: rgba(0, 243, 255, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.05);
  --nav-height: 80px;
  --font-main: 'Inter', sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

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

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(112, 0, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 243, 255, 0.08) 0%, transparent 40%);
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* --- Navigation --- */
header {
  height: var(--nav-height);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(3, 3, 5, 0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  /* Smaller font */
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 1px;

  /* Rounded shining border */
  border: 1px solid var(--accent-primary);
  border-radius: 50px;
  padding: 8px 24px;
  box-shadow: 0 0 15px var(--accent-glow), inset 0 0 10px rgba(0, 243, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.logo:hover {
  box-shadow: 0 0 25px var(--accent-glow), inset 0 0 15px rgba(0, 243, 255, 0.2);
  transform: translateY(-1px);
}

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

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links a:hover {
  color: var(--accent-primary);
  text-shadow: 0 0 10px var(--accent-glow);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(transparent, var(--bg-color)), url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: -1;
  animation: gridMove 60s linear infinite;
  opacity: 0.5;
}

@keyframes gridMove {
  0% {
    transform: translate(-25%, -25%);
  }

  100% {
    transform: translate(0, 0);
  }
}

.hero-content h1 {
  font-size: 4.5rem;
  margin-bottom: 24px;
  background: linear-gradient(to right, #fff, var(--text-muted));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content h1 span {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.btn-glow {
  display: inline-block;
  padding: 16px 40px;
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 243, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn-glow:hover {
  background: var(--accent-primary);
  color: #000;
  box-shadow: 0 0 30px var(--accent-glow);
}

.btn-glow:hover::before {
  left: 100%;
}

/* --- Portfolio grid --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 60px auto 0;
  padding: 0 20px;
}

.portfolio-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  transition: all 0.4s ease;
  backdrop-filter: blur(10px);
}

.portfolio-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px -10px var(--accent-glow);
  background: rgba(255, 255, 255, 0.05);
}

.portfolio-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.portfolio-card h3 {
  color: #fff;
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.portfolio-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* --- Footer --- */
footer {
  background: #000;
  padding: 80px 0 40px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 20px;
  display: block;
  text-transform: uppercase;
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 24px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-section p {
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.copyright {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.8rem;
  opacity: 0.5;
}

/* --- Legal Pages --- */
.legal-content {
  padding-top: 160px;
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 3.5rem;
  margin-bottom: 40px;
  color: #fff;
}

.legal-content h2 {
  font-size: 2rem;
  margin: 50px 0 20px;
  color: var(--accent-primary);
}

.legal-content p,
.legal-content ul {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.legal-content ul {
  padding-left: 20px;
}

/* --- Mobile --- */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.8rem;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-height));
    background: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .mobile-toggle {
    display: block;
  }
}