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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-y: auto;
  height: 100%;
}

@media screen and (max-width: 768px) {
  html {
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
  
  .navbar {
    z-index: 1000;
  }
  
  .container {
    padding-top: 0.5rem;
    padding-bottom: 2rem;
  }
}

:root {
  --primary-color: #41b6e2;
  --secondary-color: #6e41e2;
  
  --bg-color: #080f18;
  --bg-accent: rgba(65, 182, 226, 0.05);
  --card-bg: #1a2332;
  
  --text-color: #e8edf4;
  --text-muted: #99a8c0;
  --muted-color: #475569;

  --border-color: rgba(255, 255, 255, 0.1);
  
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --hover-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  --glow-shadow: 0 0 15px rgba(65, 182, 226, 0.5);
}

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

@media screen and (max-width: 768px) {
  body {
    padding-top: 60px;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul, ol {
  list-style: none;
}

.user-info-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1002;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.user-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background-color: var(--card-bg);
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  font-size: 0.9rem;
  font-family: 'JetBrains Mono', monospace;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.user-info-item i {
  color: var(--primary-color);
  font-size: 1rem;
}

.user-info-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

@media screen and (max-width: 768px) {
  .user-info-panel {
    display: none;
  }
}

.effect-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  backdrop-filter: blur(10px);
  background-color: rgba(26, 35, 50, 0.8);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.logo .highlight {
  color: var(--primary-color);
}

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

.nav-link {
  position: relative;
  padding: 0.5rem 0;
  font-weight: 500;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 2.5rem;
  height: 2rem;
  position: relative;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  position: absolute;
  transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) {
  top: 0;
}

.mobile-menu-btn span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-btn span:nth-child(3) {
  bottom: 0;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  height: 100vh;
  background-color: var(--card-bg);
  z-index: 999;
  transition: right 0.3s ease;
  padding-top: 4rem;
}

.mobile-menu.open {
  right: 0;
}

.mobile-nav-links {
  padding: 1rem;
}

.mobile-nav-links li {
  margin-bottom: 1.5rem;
}

@media screen and (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
}

main {
  padding-top: 5rem;
}

@media screen and (max-width: 768px) {
  main {
    padding-top: 2rem;
  }
}

.section {
  padding: 5rem 0;
  position: relative;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-line {
  width: 100px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 0 auto;
  border-radius: 3px;
}

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

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text {
  max-width: 100%;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-title .greeting {
  display: block;
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-family: 'JetBrains Mono', monospace;
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
  max-width: 90%;
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
}

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

.primary-btn:hover {
  background-color: transparent;
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: var(--glow-shadow);
}

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

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

.disabled-btn {
  background-color: var(--muted-color);
  color: var(--text-muted);
  border: 2px solid var(--muted-color);
  cursor: not-allowed;
}

.disabled-btn:hover {
  transform: none;
  background-color: var(--muted-color);
  color: var(--text-muted);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-circle {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.tech-icon {
  position: absolute;
  font-size: 1.5rem;
  color: var(--primary-color);
  background-color: var(--card-bg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.tech-icon:nth-child(1) { transform: rotate(0deg) translateX(125px); }
.tech-icon:nth-child(2) { transform: rotate(60deg) translateX(125px); }
.tech-icon:nth-child(3) { transform: rotate(120deg) translateX(125px); }
.tech-icon:nth-child(4) { transform: rotate(180deg) translateX(125px); }
.tech-icon:nth-child(5) { transform: rotate(240deg) translateX(125px); }
.tech-icon:nth-child(6) { transform: rotate(300deg) translateX(125px); }

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-20px) translateX(-50%);
  }
  60% {
    transform: translateY(-10px) translateX(-50%);
  }
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-color);
  border-radius: 12px;
  position: relative;
  margin: 0 auto 1rem;
}

.wheel {
  width: 6px;
  height: 6px;
  background-color: var(--primary-color);
  border-radius: 50%;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
}

.arrow span {
  display: block;
  width: 8px;
  height: 8px;
  border-bottom: 2px solid var(--primary-color);
  border-right: 2px solid var(--primary-color);
  transform: rotate(45deg);
  margin: -5px auto;
  animation: arrow 1.5s infinite;
}

.arrow span:nth-child(2) {
  animation-delay: -0.2s;
}

.arrow span:nth-child(3) {
  animation-delay: -0.4s;
}

@keyframes arrow {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-10px, -10px);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(10px, 10px);
  }
}

@media screen and (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-description {
    max-width: 100%;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-image {
    display: none;
  }
}

/* About Section */
.about-section {
  background-color: var(--bg-accent);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

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

.about-text .quote {
  font-style: italic;
  color: var(--primary-color);
  font-weight: 500;
  margin-top: 2rem;
}

/* Permissions Section */
.permissions-content {
  max-width: 1200px;
  margin: 0 auto;
}

.permission-intro {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.permission-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  text-align: center;
}

.permission-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

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

.permission-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.permission-desc {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  min-height: 60px;
}

.permission-risk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

/* Info Types Section */
.info-types-section {
  background-color: var(--bg-accent);
}

.info-category {
  margin-bottom: 3rem;
}

.category-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--primary-color);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.info-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.info-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

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

.info-name {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.info-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Protection Section */
.protection-tips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.tip-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
}

.tip-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

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

.tip-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.tip-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background-color: var(--card-bg);
  padding: 2rem 0;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.copyright {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Tilt Effect */
.tilt-element {
  transition: transform 0.3s ease;
}

/* Responsive Adjustments */
@media screen and (max-width: 1024px) {
  .hero-content,
  .about-content {
    gap: 2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
}

@media screen and (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .permissions-grid,
  .info-grid,
  .protection-tips {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
}