/*
  HELENA // TECH
  Aesthetic: Brutal Tech / Cyber-Industrial
*/

:root {
  --bg-deep: #020617;
  --bg-dark: #0f172a;
  --bg-panel: #1e293b;
  --primary: #3b82f6;
  /* Tech blue */
  --secondary: #60a5fa;
  /* Light cyan/blue */
  --text-main: #f8fafc;
  --text-dim: #94a3b8;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Inter', sans-serif;

  --border-neon: 1px solid var(--primary);
  --border-dim: 1px solid rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
}

body {
  font-family: var(--font-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

::selection {
  background-color: var(--primary);
  color: var(--bg-deep);
}

/* Background Textures */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -2;
}

/* Navigation */
.main-nav {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 1.5rem 2rem;
  z-index: 1000;
  background: transparent;
  border-bottom: none;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-logo {
  width: 350px;
  height: 350px;
  margin-top: -120px;
  margin-bottom: -120px;
  object-fit: contain;
}

.nav-brand-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 3rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--primary);
  width: 0%;
  overflow: hidden;
  transition: width 0.3s ease;
  white-space: nowrap;
}

.nav-links a:hover::before {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 12rem 2rem 4rem;
  position: relative;
}

.giant-bg-text {
  position: absolute;
  top: 40%;
  left: -5%;
  font-family: var(--font-display);
  font-size: 15vw;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.015);
  line-height: 0.8;
  z-index: -1;
  user-select: none;
  white-space: nowrap;
}

.hero-content {
  z-index: 2;
}

.hero-badge {
  font-family: var(--font-mono);
  color: var(--secondary);
  font-size: 0.85rem;
  border: 1px solid var(--secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  margin-bottom: 2rem;
  letter-spacing: 1px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.hero-title .hero-highlight {
  color: var(--primary);
  /* Optional: text shadow for glow */
  text-shadow: 0 0 30px rgba(204, 255, 0, 0.3);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-dim);
  max-width: 500px;
  margin-bottom: 3rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.btn-brutal,
.btn-outline {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1.25rem 2rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-brutal {
  background: var(--primary);
  color: var(--bg-deep);
  box-shadow: 5px 5px 0px rgba(255, 255, 255, 0.1);
}

.btn-brutal:hover {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0px rgba(255, 255, 255, 0.1);
  background: #fff;
}

.btn-outline {
  border: var(--border-dim);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.visual-accent-box {
  position: absolute;
  width: 80%;
  height: 80%;
  border: 2px solid var(--primary);
  top: 15%;
  left: 15%;
  z-index: 0;
}

.hero-main-img {
  width: 70%;
  max-width: 500px;
  /* Safe size for whatever logo they use */
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.8));
  /* Added a slight float animation */
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Services */
.services {
  padding: 8rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 5rem;
  border-bottom: var(--border-dim);
  padding-bottom: 2rem;
}

.section-kicker {
  font-family: var(--font-mono);
  color: var(--secondary);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-panel);
  padding: 3rem 2rem;
  position: relative;
  border: var(--border-dim);
  transition: all 0.4s ease;
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  transition: color 0.4s;
}

.service-card:hover .card-num {
  color: var(--secondary);
  opacity: 0.3;
}

.card-icon {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 2rem;
  transition: color 0.4s;
}

.service-card:hover .card-icon {
  color: var(--primary);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-dim);
  font-size: 1rem;
}

.card-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 0%;
  background: var(--primary);
  transition: width 0.4s ease;
}

.service-card:hover .card-bar {
  width: 100%;
}

/* Profile / Contact */
.profile {
  background-color: var(--bg-dark);
  padding: 8rem 2rem;
  border-top: var(--border-dim);
  position: relative;
}

.profile-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 6rem;
  align-items: stretch;
}

.profile-frame {
  position: relative;
  width: 100%;
  padding-bottom: 120%;
  /* ratio */
}

.prof-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2);
  transition: filter 0.5s;
}

.profile-frame:hover .prof-img {
  filter: grayscale(0%) contrast(1);
}

.frame-decor {
  position: absolute;
  width: 50px;
  height: 50px;
  border: 4px solid var(--secondary);
  z-index: 2;
  pointer-events: none;
}

.tl {
  top: -10px;
  left: -10px;
  border-right: none;
  border-bottom: none;
}

.br {
  bottom: -10px;
  right: -10px;
  border-left: none;
  border-top: none;
}

.profile-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.5px;
  margin-bottom: 1rem;
}

.profile-title {
  font-family: var(--font-mono);
  color: var(--primary);
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

.profile-bio {
  font-size: 1.25rem;
  color: var(--text-dim);
  margin-bottom: 3rem;
  max-width: 700px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 4rem;
}

.tech-stack span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
}

.contact-nexus {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.nexus-link {
  font-family: var(--font-mono);
  text-decoration: none;
  color: var(--text-main);
  background: var(--bg-panel);
  padding: 1.5rem;
  border: var(--border-dim);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.nexus-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--secondary);
  color: var(--secondary);
}

/* Footer */
footer {
  padding: 2rem;
  border-top: var(--border-dim);
  background: var(--bg-deep);
}

.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}

.foot-brand {
  color: var(--text-main);
  font-weight: 700;
}

.foot-back-top {
  color: var(--text-main);
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.foot-back-top:hover {
  color: var(--primary);
}

/* Simple Animation Utilities */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUpAnim 1s forwards ease-out;
}

.slide-down {
  transform: translateY(-100%);
  animation: slideDownAnim 0.8s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeUpAnim {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDownAnim {
  to {
    transform: translateY(0);
  }
}

/* Add delays for stagger */
.hero-title {
  animation-delay: 0.2s;
}

.hero-desc {
  animation-delay: 0.4s;
}

.hero-actions {
  animation-delay: 0.6s;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: 10rem;
    gap: 4rem;
  }

  .hero-visual {
    margin: 0 auto;
  }

  .profile-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .profile-frame {
    max-width: 400px;
    margin: 0 auto;
  }

  .contact-nexus {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  /* Mobile menu needed */

  .hero-title {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 3rem;
  }

  .profile-name {
    font-size: 3.5rem;
  }
}