/* AQUA Chain - Main Stylesheet */

/* Base Styles and Variables */
:root {
  --primary-color: #0099cc;
  --secondary-color: #00ccff;
  --accent-color: #00e6e6;
  --dark-color: #005566;
  --light-color: #e6ffff;
  --white: #ffffff;
  --black: #333333;
  --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --box-shadow: 0 5px 15px rgba(0, 153, 204, 0.2);
  --transition: all 0.3s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

h2:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
}

.section-sm {
  padding: 3rem 0;
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -1rem;
}

.col {
  flex: 1;
  padding: 0 1rem;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.header-scrolled {
  background-color: var(--white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 40px;
  margin-right: 0.5rem;
}

.logo h1 {
  font-size: 1.5rem;
  margin-bottom: 0;
}

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

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  color: var(--dark-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
}

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

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

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

.mobile-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--dark-color);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1519184269465-0a2a0f5a0d8c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80') no-repeat center center/cover;
  background-attachment: fixed;
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 153, 204, 0.8) 0%, rgba(0, 204, 255, 0.8) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  max-width: 700px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-size: 4rem;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--box-shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 153, 204, 0.3);
}

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

.btn-outline:hover {
  background: var(--gradient);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

/* Features Section */
.features {
  background-color: var(--light-color);
}

.feature-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 153, 204, 0.3);
}

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

/* How It Works Section */
.how-it-works {
  position: relative;
}

.step {
  display: flex;
  margin-bottom: 3rem;
  align-items: center;
}

.step-number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin-right: 1.5rem;
}

.step-content {
  flex-grow: 1;
}

/* Technology Section */
.technology {
  background-color: var(--light-color);
}

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

.tech-card {
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 153, 204, 0.3);
}

.tech-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.tech-card-content {
  padding: 1.5rem;
}

/* Team Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 5px solid var(--white);
  box-shadow: var(--box-shadow);
}

.team-member h3 {
  margin-bottom: 0.5rem;
}

.team-member p {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  list-style: none;
}

.social-links li {
  margin: 0 0.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow);
}

/* Testimonials Section */
.testimonials {
  background-color: var(--light-color);
}

.testimonial-card {
  background-color: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
  position: relative;
}

.testimonial-card:before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 5rem;
  color: rgba(0, 153, 204, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  margin-top: 1.5rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.author-info h4 {
  margin-bottom: 0.25rem;
}

.author-info p {
  color: var(--primary-color);
  margin-bottom: 0;
}

/* Contact Section */
.contact-form {
  background-color: var(--white);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
}

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

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.2);
}

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

/* Footer */
footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 40px;
}

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

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

.footer-links a {
  color: var(--light-color);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: var(--transition);
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .nav-links li {
    margin: 1rem 0;
  }
  
  .row {
    flex-direction: column;
  }
  
  .col {
    margin-bottom: 2rem;
  }
  
  .hero {
    height: auto;
    min-height: 500px;
    padding: 100px 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .step {
    flex-direction: column;
    text-align: center;
  }
  
  .step-number {
    margin-right: 0;
    margin-bottom: 1rem;
  }
}

/* Water Animation */
.water-animation {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: url('https://assets.codepen.io/85648/wave.svg') repeat-x;
  background-size: 1000px 100px;
  animation: wave 13s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
  transform: translate3d(0, 0, 0);
}

.water-animation:nth-of-type(2) {
  top: -25px;
  animation: wave 7s cubic-bezier(0.36, 0.45, 0.63, 0.53) -0.125s infinite, swell 7s ease -1.25s infinite;
  opacity: 0.75;
}

.water-animation:nth-of-type(3) {
  top: -50px;
  animation: wave 15s cubic-bezier(0.36, 0.45, 0.63, 0.53) -0.25s infinite, swell 15s ease -2.5s infinite;
  opacity: 0.5;
}

@keyframes wave {
  0% {
    margin-left: 0;
  }
  100% {
    margin-left: -1000px;
  }
}

@keyframes swell {
  0%, 100% {
    transform: translateY(-25px);
  }
  50% {
    transform: translateY(5px);
  }
}

/* Particle Background */
.particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

/* Blockchain Animation */
.blockchain-animation {
  position: relative;
  height: 300px;
  margin: 2rem 0;
}

.block {
  position: absolute;
  width: 150px;
  height: 150px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  animation: blockAppear 0.5s forwards;
}

.block:nth-child(1) {
  left: 0;
  animation-delay: 0.2s;
}

.block:nth-child(2) {
  left: 200px;
  animation-delay: 0.4s;
}

.block:nth-child(3) {
  left: 400px;
  animation-delay: 0.6s;
}

.block:nth-child(4) {
  left: 600px;
  animation-delay: 0.8s;
}

.chain {
  position: absolute;
  height: 2px;
  background: var(--primary-color);
  top: 75px;
  opacity: 0;
  animation: chainAppear 0.5s forwards;
}

.chain:nth-child(5) {
  left: 150px;
  width: 50px;
  animation-delay: 0.3s;
}

.chain:nth-child(6) {
  left: 350px;
  width: 50px;
  animation-delay: 0.5s;
}

.chain:nth-child(7) {
  left: 550px;
  width: 50px;
  animation-delay: 0.7s;
}

@keyframes blockAppear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chainAppear {
  to {
    opacity: 1;
  }
}

/* Utility Classes */
.mb-0 {
  margin-bottom: 0;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mb-5 {
  margin-bottom: 3rem;
}

.mt-0 {
  margin-top: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mt-5 {
  margin-top: 3rem;
}

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

.bg-light {
  background-color: var(--light-color);
}

.bg-white {
  background-color: var(--white);
}

.rounded {
  border-radius: 10px;
}

.shadow {
  box-shadow: var(--box-shadow);
}