:root {
  --primary-color: #0a192f;
  --secondary-color: #112240;
  --accent-color: #64ffda;
  --accent-glow: rgba(100, 255, 218, 0.15);
  --text-primary: #ccd6f6;
  --text-secondary: #8892b0;
  --white: #e6f1ff;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --transition: all 0.3s ease-in-out;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --card-bg: rgba(17, 34, 64, 0.6);
  --glass-bg: rgba(17, 34, 64, 0.4);
  --glass-border: rgba(100, 255, 218, 0.08);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 30px rgba(100, 255, 218, 0.08);
}

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

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--primary-color);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Selection Color */
::selection {
  background: var(--accent-color);
  color: var(--primary-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  line-height: 1.8;
}

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

a:hover {
  color: var(--white);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Container ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header & Navigation ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000;
  box-shadow: 0 1px 0 var(--border-subtle), 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 0.4rem 0;
  transition: var(--transition);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo img {
  height: 58px;
  width: auto;
  max-width: 100%;
}

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

.nav-links li a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  color: var(--text-primary);
  padding: 6px 0;
  letter-spacing: 0.3px;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
  transition: width 0.4s ease;
}

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

.nav-links li a:hover,
.nav-links li a.active {
  color: var(--accent-color);
}

.cta-btn {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background-color: var(--accent-color);
  border: 1.5px solid var(--accent-color);
  border-radius: 8px;
  color: var(--primary-color) !important;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.1), transparent);
  transition: left 0.5s ease;
  pointer-events: none;
}

.cta-btn:hover {
  background-color: transparent;
  color: var(--accent-color) !important;
  box-shadow: 0 0 25px rgba(100, 255, 218, 0.4);
  transform: translateY(-2px);
}

.cta-btn:hover::before {
  left: 100%;
}

.nav-links li a.cta-btn::after {
  display: none;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 80px;
}

#canvas-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-content {
  z-index: 1;
  max-width: 850px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.8rem;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  font-weight: 800;
  background: linear-gradient(135deg, var(--white) 0%, var(--text-primary) 50%, var(--accent-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.hero-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.hero-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.15), transparent);
  transition: left 0.6s ease;
}

.hero-btn:hover {
  background-color: rgba(100, 255, 218, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(100, 255, 218, 0.2);
  color: var(--accent-color);
}

.hero-btn:hover::before {
  left: 100%;
}

/* ===== Section General Styles ===== */
section {
  padding: 80px 0;
  margin-bottom: 30px;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: var(--white);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), rgba(100, 255, 218, 0.3));
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ===== Enhanced Footer ===== */
footer {
  background: linear-gradient(180deg, #0b1c34 0%, var(--secondary-color) 100%);
  color: var(--text-secondary);
  position: relative;
  overflow: hidden;
  margin-top: 80px;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
}

.footer-brand .footer-logo {
  display: inline-block;
  margin-bottom: 1.5rem;
}

.footer-brand .footer-logo img {
  height: 65px;
  width: auto;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 320px;
}

.footer-social {
  display: flex;
  gap: 0.8rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(100, 255, 218, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.03);
}

.footer-social a:hover {
  background: var(--accent-color);
  color: var(--primary-color);
  border-color: var(--accent-color);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(100, 255, 218, 0.3);
}

.footer-column h4 {
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
  font-weight: 700;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-color);
  border-radius: 2px;
}

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

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-links a::before {
  content: '›';
  color: var(--accent-color);
  font-size: 1.2rem;
  opacity: 0;
  transform: translateX(-5px);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-color);
  transform: translateX(5px);
}

.footer-links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.2rem;
}

.footer-contact-item i {
  color: var(--accent-color);
  font-size: 1rem;
  margin-top: 4px;
  min-width: 16px;
}

.footer-contact-item span {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer-newsletter {
  margin-top: 1.5rem;
}

.footer-newsletter p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.newsletter-form {
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(100, 255, 218, 0.12);
  transition: var(--transition);
  background: rgba(0, 0, 0, 0.15);
}

.newsletter-form:focus-within {
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.1);
}

.newsletter-form input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.newsletter-form input::placeholder {
  color: var(--text-secondary);
}

.newsletter-form button {
  padding: 12px 18px;
  background: var(--accent-color);
  color: var(--primary-color);
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.newsletter-form button:hover {
  background: #52e0be;
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-bottom-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

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

/* ===== Footer Responsive ===== */
@media (max-width: 992px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 0 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
  }
}

/* ===== Mobile Menu Toggle ===== */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  color: var(--accent-color);
  cursor: pointer;
  transition: var(--transition);
}

.menu-toggle:hover {
  transform: scale(1.1);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 75%;
    height: calc(100vh - 70px);
    background: rgba(17, 34, 64, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    gap: 1.5rem;
  }

  .nav-links.active {
    right: 0;
  }

  .menu-toggle {
    display: block;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.7rem;
  }

  .container {
    padding: 0 16px;
  }
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary-color);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-color);
  border-radius: 4px;
  border: 1px solid rgba(100, 255, 218, 0.1);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 255, 218, 0.2);
}

/* ===== Utility Classes ===== */
.text-accent {
  color: var(--accent-color);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-color), #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}

/* ===== Focus & Accessibility ===== */
*:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

button,
input,
textarea,
select {
  font-family: inherit;
}