@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Colour variables */
:root {
  --bg-color: #09090b;          /* Zinc 950 - deep dark modern */
  --header-bg: rgba(9, 9, 11, 0.75); /* Glassmorphism header */
  --card-bg: rgba(24, 24, 27, 0.6);  /* Zinc 900 slightly transparent */
  --card-border: rgba(255, 255, 255, 0.08);

  --primary-text: #f8fafc;      /* Crisp white for headings */
  --secondary-text: #94a3b8;    /* Slate 400 for body copy */
  --purple: #8b5cf6;            /* Violet 500 - vibrant purple */
  --purple-hover: #7c3aed;      /* Violet 600 */
  --yellow: #facc15;            /* Yellow 400 - striking neon-ish */
  --yellow-hover: #eab308;      /* Yellow 500 */
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global styles */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--primary-text);
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Typography styles */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.5rem;
}

h1 span {
  background: linear-gradient(135deg, var(--purple) 0%, var(--yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
  color: var(--primary-text);
}

p {
  color: var(--secondary-text);
  font-size: 1.125rem;
  font-weight: 400;
}

/* Header and navigation */
header {
  background-color: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--card-border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--primary-text);
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  gap: 0.75rem;
}

.logo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

nav ul li a {
  color: var(--secondary-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
  color: #fff;
}

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

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

nav ul li a.active::after {
  background-color: var(--yellow);
}

/* Mobile navigation toggle */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary-text);
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 1.5rem;
  }
  
  nav ul {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-color);
    border-bottom: 1px solid var(--card-border);
    display: flex;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
  }
  
  nav ul.show {
    max-height: 300px;
    padding: 1rem 0;
  }
  
  nav ul li {
    text-align: center;
    padding: 0.5rem 0;
  }

  .menu-toggle {
    display: block;
  }
}

/* Main Spacing */
main {
  padding-top: 80px; /* Offset for fixed header */
}

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

/* Hero section */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 5%;
  position: relative;
  overflow: hidden;
}

/* Decorative background glow for hero */
.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, rgba(9,9,11,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero p {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

/* Buttons */
.cta-btn {
  background-color: var(--purple);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 9999px; /* Pill shape */
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 10px 25px -5px rgba(139, 92, 246, 0.4);
}

.cta-btn:hover {
  background-color: var(--yellow);
  color: var(--bg-color);
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -5px rgba(250, 204, 21, 0.4);
}

.cta-btn-outline {
  background: transparent;
  color: var(--primary-text);
  border: 1px solid var(--card-border);
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 9999px;
  text-decoration: none;
  transition: var(--transition);
}

.cta-btn-outline:hover {
  border-color: var(--secondary-text);
  background: rgba(255,255,255,0.05);
}

.button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.15rem;
}

.about-content p {
  margin-bottom: 1.5rem;
}

/* Services grid */
.services-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.service-card {
  background-color: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  padding: 2.5rem;
  border-radius: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Hover glow effect for cards */
.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255,255,255,0.06), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(139, 92, 246, 0.3);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.service-card .icon {
  font-size: 2.5rem;
  color: var(--yellow);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: #fff;
}

.service-card p {
  margin: 0;
  font-size: 1rem;
  flex-grow: 1;
}

/* Contact form */
.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 3rem 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--secondary-text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--primary-text);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #52525b; /* Zinc 600 */
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--purple);
  background-color: rgba(139, 92, 246, 0.05);
}

.submit-btn {
  background-color: var(--purple);
  color: #fff;
  border: none;
  padding: 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.submit-btn:hover {
  background-color: var(--yellow);
  color: var(--bg-color);
}

/* Footer */
footer {
  border-top: 1px solid var(--card-border);
  padding: 3rem 5%;
  text-align: center;
  color: var(--secondary-text);
  font-size: 0.95rem;
  margin-top: 4rem;
}

footer .footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 768px) {
  footer .footer-content {
    flex-direction: column;
  }
}

footer a {
  color: var(--primary-text);
  text-decoration: none;
  transition: var(--transition);
}

footer a:hover {
  color: var(--yellow);
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger item delays inside a grid */
.reveal-stagger > *:nth-child(1) { transition-delay: 0.1s; }
.reveal-stagger > *:nth-child(2) { transition-delay: 0.2s; }
.reveal-stagger > *:nth-child(3) { transition-delay: 0.3s; }
.reveal-stagger > *:nth-child(4) { transition-delay: 0.4s; }
.reveal-stagger > *:nth-child(5) { transition-delay: 0.5s; }
.reveal-stagger > *:nth-child(6) { transition-delay: 0.6s; }

.reveal-stagger.active > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}