/*
 * Magno Digital Group Landing Page Styles
 *
 * This stylesheet defines the look and feel of the Magno Digital Group landing page.
 * Colors and spacing derive from the provided brand guidelines:
 *  - Deep black (#050505)
 *  - Electric blue (#00AEEF)
 *  - White (#FFFFFF)
 *  - Dark gray (#111111)
 *  - Soft gray (#B8B8B8)
 */

:root {
  --primary: #00AEEF;
  --background: #050505;
  --surface: rgba(17, 17, 17, 0.6);
  --text: #FFFFFF;
  --subtext: #B8B8B8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* Utility container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

.logo-mark {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.logo-text {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: var(--text);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  text-transform: uppercase;
  font-size: 0.875rem;
  color: var(--subtext);
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  outline: none;
  padding: 0.25rem;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text);
  display: block;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 4rem;
  overflow: hidden;
}

/* Canvas occupies full hero */
#hero-network {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-content {
    flex-direction: row;
    align-items: center;
  }
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text .accent {
  color: var(--primary);
}

.hero-text .subtitle {
  color: var(--subtext);
  font-size: 1.125rem;
  max-width: 600px;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s, box-shadow 0.3s;
}

.primary-btn {
  background: var(--primary);
  color: var(--background);
  box-shadow: 0 0 10px rgba(0, 174, 239, 0.5);
}

.primary-btn:hover {
  box-shadow: 0 0 20px rgba(0, 174, 239, 0.8);
}

.secondary-btn {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.secondary-btn:hover {
  background: rgba(0, 174, 239, 0.15);
}

.hero-graphic {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fingerprint-wrapper {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,174,239,0.25), rgba(0,174,239,0) 70%);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 30px rgba(0,174,239,0.4);
}

.fingerprint-icon {
  width: 70%;
  height: 70%;
  fill: var(--primary);
  opacity: 0.9;
}

/* Sections */
section {
  padding: 6rem 0;
}

section h2 {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-desc {
  text-align: center;
  color: var(--subtext);
  margin-bottom: 2.5rem;
}

/* Services */
.services {
  background: rgba(17, 17, 17, 0.4);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 174, 239, 0.1);
  backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 174, 239, 0.4);
}

.icon-wrapper {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 174, 239, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 174, 239, 0.6);
}

.service-icon {
  width: 30px;
  height: 30px;
  fill: var(--primary);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--subtext);
}

/* About */
.about {
  background: rgba(17, 17, 17, 0.6);
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: center;
}

.about-text {
  flex: 1 1 300px;
}

.about-text p {
  color: var(--subtext);
  margin-top: 1rem;
  max-width: 600px;
  line-height: 1.6;
}

.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.metric {
  text-align: left;
}

.metric .number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.metric .label {
  color: var(--subtext);
  font-size: 0.85rem;
  line-height: 1.2;
}

.about-graphic {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-fingerprint {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 174, 239, 0.4), rgba(0, 174, 239, 0) 70%);
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 0 30px rgba(0, 174, 239, 0.5);
}

.about-fingerprint-icon {
  width: 70%;
  height: 70%;
  fill: var(--primary);
  opacity: 0.9;
}

/* Why choose us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.why-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 10px rgba(0, 174, 239, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 20px rgba(0, 174, 239, 0.4);
}

.why-icon {
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 174, 239, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 174, 239, 0.5);
}

.why-svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

.why-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.why-card p {
  font-size: 0.9rem;
  color: var(--subtext);
}

/* Portfolio */
.portfolio {
  background: rgba(17, 17, 17, 0.7);
}

.portfolio-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 2rem;
}

.portfolio-track {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  gap: 1rem;
  padding: 1rem 0;
}

.portfolio-track::-webkit-scrollbar {
  display: none;
}

.portfolio-item {
  position: relative;
  flex: 0 0 280px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 10px rgba(0, 174, 239, 0.15);
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: transform 0.3s;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  color: #fff;
}

.portfolio-overlay h4 {
  font-size: 1rem;
  margin: 0;
  color: #fff;
}

.portfolio-overlay p {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--subtext);
}

.portfolio-nav {
  background: rgba(0, 174, 239, 0.2);
  border: none;
  color: var(--primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  transition: background 0.3s;
}

.portfolio-nav:hover {
  background: rgba(0, 174, 239, 0.4);
}

.portfolio-nav.prev {
  left: -20px;
}

.portfolio-nav.next {
  right: -20px;
}

/* Process */
.process-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 2rem;
}

.process-step {
  flex: 1 1 180px;
  max-width: 200px;
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--background);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 0.75rem;
  font-weight: 600;
}

.process-step h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--subtext);
}

/* CTA */
.cta {
  background: linear-gradient(135deg, rgba(0, 174, 239, 0.3), rgba(0, 174, 239, 0.1));
  text-align: center;
}

.cta-inner h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta-inner p {
  color: var(--subtext);
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background: rgba(10, 10, 10, 0.9);
  padding: 4rem 0 1rem;
  color: var(--subtext);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  flex: 1 1 250px;
}

.footer-brand p {
  margin-top: 0.5rem;
  line-height: 1.4;
  max-width: 280px;
}

.footer-links,
.footer-contact,
.footer-social {
  flex: 1 1 200px;
}

.footer-links h4,
.footer-contact h4,
.footer-social h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.footer-links ul,
.footer-contact ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.footer-links li,
.footer-contact li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--subtext);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

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

.contact-icon {
  margin-right: 0.5rem;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
}

.contact-icon svg {
  width: 16px;
  height: 16px;
  fill: var(--primary);
}

.social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 174, 239, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.social-link svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
}

.social-link:hover {
  background: rgba(0, 174, 239, 0.4);
}

.copyright {
  background: rgba(5, 5, 5, 0.9);
  padding: 1rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  color: var(--subtext);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 1.5rem;
    background: rgba(5, 5, 5, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    width: 200px;
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .hero-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 3rem;
  }
  .hero-graphic {
    margin-top: 2rem;
  }
  .portfolio-nav.prev {
    left: 0;
  }
  .portfolio-nav.next {
    right: 0;
  }
  .portfolio-item {
    flex: 0 0 250px;
  }
  .about-grid {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-fingerprint {
    margin-top: 2rem;
  }
  .footer-grid {
    flex-direction: column;
  }
}