/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Chivo:wght@700&family=DM+Sans:wght@400;500;700&display=swap');

/* Reset & Base Styles */
:root {
  --primary: #0046FF;
  --secondary: #F5C540;
  --dark-bg: #0B0E21;
  --dark-bg-2: #091338;
  --light: #ffffff;
  --gray: #f3f4f6;
  --text: #1f2937;
  --padding: clamp(2rem, 5vw, 4rem);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  scroll-snap-type: y mandatory;
  overflow-x: hidden;
  scroll-padding-top: 0;
  line-height: 1.6;
  height: 100%;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="en-GB"] {
  font-variant-numeric: lining-nums;
}

body {
  height: 100%;
  width: 100%;
  overflow-x: hidden;
}

section {
  min-height: 100vh;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
  padding: var(--padding);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

h1, h2, h3 {
  font-family: 'Chivo', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

p {
  margin-bottom: 1rem;
  max-width: 65ch;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}

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

a:hover, a:focus {
  color: var(--secondary);
}

a:focus, button:focus, input:focus, textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--primary);
  color: var(--light);
  border: none;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
}

.btn:hover {
  background-color: #003add;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 70, 255, 0.3);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--light);
  position: relative;
}

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

.btn-primary.glowing {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 70, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 70, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 70, 255, 0);
  }
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.5rem var(--padding);
  transition: var(--transition);
  background-color: transparent;
}

header.scrolled {
  background-color: rgba(11, 14, 33, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  color: var(--light);
  font-family: 'Chivo', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  z-index: 1002;
  position: relative;
}

/* Hamburger Menu */
.menu-toggle {
  display: block;
  position: relative;
  z-index: 1002;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.hamburger, .hamburger::before, .hamburger::after {
  content: '';
  display: block;
  background-color: var(--light);
  height: 3px;
  width: 30px;
  position: absolute;
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger {
  top: 13px;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.menu-checkbox {
  display: none;
}

.menu-checkbox:checked ~ .menu-toggle .hamburger {
  background-color: transparent;
}

.menu-checkbox:checked ~ .menu-toggle .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.menu-checkbox:checked ~ .menu-toggle .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(9, 19, 56, 0.98);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1001;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  backdrop-filter: blur(5px);
}

.menu-checkbox:checked ~ .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

nav ul {
  list-style: none;
  text-align: center;
}

nav ul li {
  margin: 2rem 0;
  transform: translateY(20px);
  opacity: 0;
  transition: var(--transition);
  transition-delay: calc(0.1s * var(--i));
}

.menu-checkbox:checked ~ .nav-overlay nav ul li {
  transform: translateY(0);
  opacity: 1;
}

nav ul li a {
  color: var(--light);
  font-size: 2rem;
  font-weight: 700;
  position: relative;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

nav ul li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: var(--secondary);
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-bg-2) 100%);
  color: var(--light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding-top: 80px;
}

.hero-content {
  position: relative;
  z-index: 5;
}

.hero h1 {
  margin-bottom: 2rem;
  max-width: 20ch;
  margin-left: auto;
  margin-right: auto;
}

.hero p {
  font-size: 1.25rem;
  max-width: 55ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.hero .btn {
  margin-top: 1rem;
}

/* Grid Overlay Animation */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 70, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 70, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 1;
  animation: gridMove 20s linear infinite;
  opacity: 0.5;
}

/* Blockchain Pattern Using CSS */
.blockchain-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.15;
  z-index: 1;
  background-image: radial-gradient(rgba(245, 197, 64, 0.3) 3px, transparent 3px);
  background-size: 30px 30px;
  animation: fadeInOut 8s ease-in-out infinite;
}

@keyframes fadeInOut {
  0% { opacity: 0.05; }
  50% { opacity: 0.15; }
  100% { opacity: 0.05; }
}

@keyframes gridMove {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 50px 50px;
  }
}

/* Blockchain Pattern Background */
.blockchain-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l15 15h-30l15-15zm15 15v30l15-15-15-15zm0 30h-30l15 15 15-15zm-30 0v-30l-15 15 15 15z' fill='%230046FF' fill-opacity='0.2' fill-rule='evenodd'/%3E%3C/svg%3E");
}

/* About Section */
#about {
  background-color: var(--light);
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  padding-bottom: 1.5rem;
}

.section-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature {
  padding: 2rem;
  border-radius: 8px;
  background-color: var(--gray);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Services Section */
#services {
  background-color: var(--gray);
  position: relative;
}

/* Key Metrics Section */
.metrics {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 3rem 0;
}

.metric-card {
  padding: 2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: center;
  flex: 1;
  min-width: 260px;
  max-width: 350px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 70, 255, 0.15);
}

.metric-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: 'Chivo', sans-serif;
}

/* Portfolio Section */
#portfolio {
  background-color: var(--light);
}

.carousel-container {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--gray);
}

.carousel-container::-webkit-scrollbar {
  height: 8px;
}

.carousel-container::-webkit-scrollbar-track {
  background-color: var(--gray);
  border-radius: 4px;
}

.carousel-container::-webkit-scrollbar-thumb {
  background-color: var(--primary);
  border-radius: 4px;
}

.case-study {
  scroll-snap-align: start;
  min-width: 300px;
  flex: 0 0 calc(33.333% - 2rem);
  background-color: var(--gray);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.case-study:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.case-image {
  width: 100%;
  height: 200px;
  background-color: var(--dark-bg);
  position: relative;
}

.case-content {
  padding: 1.5rem;
}

.case-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Process Section with Timeline */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 3rem auto;
  padding-left: 50px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background-color: var(--primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -50px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--secondary);
  border: 5px solid var(--primary);
}

.timeline-item h3 {
  margin-bottom: 0.75rem;
}

/* Contact Section */
#contact {
  background-color: var(--gray);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 70, 255, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* Thank You Message Styles */
.thank-you-message {
  display: none;
  text-align: center;
  padding: 2rem;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 70, 255, 0.1);
  margin: 2rem auto;
  border-left: 4px solid var(--primary);
}

.thank-you-message h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.thank-you-message p {
  margin-bottom: 1.5rem;
}

.thank-you-message .btn {
  margin-top: 1rem;
}

/* Footer */
footer {
  background-color: var(--dark-bg);
  color: var(--light);
  padding: var(--padding);
  text-align: center;
}

.footer-info {
  margin-bottom: 2rem;
}

.footer-info p {
  opacity: 0.8;
  margin-bottom: 0.5rem;
}

.footer-description {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  opacity: 0.7;
  font-size: 0.875rem;
}

/* Simple Pages */
.simple-page {
  min-height: 100vh;
  padding: calc(80px + var(--padding)) var(--padding) var(--padding);
  background-color: var(--light);
}

.simple-page h1 {
  margin-bottom: 2rem;
}

.under-construction {
  text-align: center;
  padding: 5rem 0;
}

.under-construction h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

/* Media Queries */
@media (max-width: 768px) {
  nav ul li a {
    font-size: 1.5rem;
  }
  
  .metrics {
    flex-direction: column;
    align-items: center;
  }
  
  .metric-card {
    width: 100%;
  }
  
  .case-study {
    flex: 0 0 calc(100% - 2rem);
  }
  
  .timeline {
    padding-left: 30px;
  }
  
  .timeline-item::before {
    left: -30px;
    width: 15px;
    height: 15px;
  }
}

/* Accessibility - Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
    scroll-behavior: auto !important;
  }
} 

/* Feature Icons */
.feature-icon {
  margin-bottom: 1.5rem;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(0, 70, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.feature-icon i {
  font-size: 28px;
  color: var(--primary);
}

.feature:hover .feature-icon {
  background-color: var(--primary);
  transform: translateY(-5px);
}

.feature:hover .feature-icon i {
  color: var(--light);
}

/* Metric Cards */
.metric-icon {
  margin-bottom: 1rem;
  font-size: 24px;
  color: var(--secondary);
}

.metric-icon i {
  background: linear-gradient(135deg, var(--primary), #3e7bff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 36px;
}

/* Portfolio Section - Case Studies */
.case-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--dark-bg), var(--dark-bg-2));
  color: var(--light);
  opacity: 0.8;
  transition: var(--transition);
}

.case-placeholder i {
  opacity: 0.7;
  transition: var(--transition);
  color: var(--secondary);
}

.case-study:hover .case-placeholder {
  background: linear-gradient(135deg, var(--primary), #3e7bff);
  opacity: 1;
}

.case-study:hover .case-placeholder i {
  transform: scale(1.1);
  opacity: 1;
}

/* Timeline Icons */
.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 30px;
}

.timeline-icon {
  position: absolute;
  left: -40px;
  top: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--primary);
  border: 5px solid rgba(245, 197, 64, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  transition: var(--transition);
}

.timeline-item:hover .timeline-icon {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 70, 255, 0.5);
}

/* Footer icons */
.footer-info i {
  width: 20px;
  margin-right: 8px;
  color: var(--secondary);
} 