/* Base Styles */
:root {
  --primary: #2196F3;
  --primary-light: #03A9F4;
  --primary-dark: #0D47A1;
  --accent: #00BCD4;
  --background: #121212;
  --background-light: #1E1E1E;
  --background-card: #242424;
  --text: #E0E0E0;
  --text-muted: #9E9E9E;
  --border-radius: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

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

a:hover {
  color: var(--primary-light);
}

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

section {
  padding: 5rem 0;
}

.section-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Header Styles */
header {
  background-color: rgba(18, 18, 18, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 0;
}

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

.logo-icon {
  margin-right: 0.75rem;
}

.logo span {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: var(--text);
  font-weight: 500;
  position: relative;
}

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

nav ul li a:hover {
  color: var(--primary);
}

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

.menu-btn {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  position: relative;
  z-index: 2;
}

.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text);
  margin: 6px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 8rem 0 5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, #121212, #1a1a2e);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(33, 150, 243, 0.1), transparent 50%);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-text {
  flex: 1;
  min-width: 300px;
  z-index: 1;
}

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

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

.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  transition: var(--transition);
  text-align: center;
}

.primary-btn {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4);
}

.primary-btn:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(33, 150, 243, 0.6);
}

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

.secondary-btn:hover {
  background: rgba(33, 150, 243, 0.1);
  color: var(--primary);
}

.glow {
  animation: glow 2s infinite alternate;
}

@keyframes glow {
  from {
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.6);
  }
  to {
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.9);
  }
}

.large-btn {
  padding: 1.2rem 2.8rem;
  font-size: 1.2rem;
}

.hero-visual {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 3D Cube Animation */
.cube-container {
  width: 200px;
  height: 200px;
  perspective: 1000px;
  margin: 0 auto;
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: rotate 20s infinite linear;
}

.face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(18, 18, 18, 0.7);
  border: 2px solid var(--primary);
  box-shadow: 0 0 20px rgba(33, 150, 243, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.front {
  transform: translateZ(100px);
}

.back {
  transform: rotateY(180deg) translateZ(100px);
}

.right {
  transform: rotateY(90deg) translateZ(100px);
}

.left {
  transform: rotateY(-90deg) translateZ(100px);
}

.top {
  transform: rotateX(90deg) translateZ(100px);
}

.bottom {
  transform: rotateX(-90deg) translateZ(100px);
}

@keyframes rotate {
  from {
    transform: rotateX(0) rotateY(0) rotateZ(0);
  }
  to {
    transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg);
  }
}

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

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

.card {
  background-color: var(--background-card);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-light);
  box-shadow: 0 10px 30px rgba(33, 150, 243, 0.2);
}

.card-icon {
  margin-bottom: 1.5rem;
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--primary-light);
}

.card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

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

.features-list {
  max-width: 800px;
  margin: 0 auto;
}

.feature {
  display: flex;
  margin-bottom: 3rem;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background-color: var(--background-card);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.feature:last-child {
  margin-bottom: 0;
}

.feature:hover {
  transform: translateX(5px);
}

.feature-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-right: 1.5rem;
  line-height: 1;
}

.feature-content h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-content p {
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Generator Section */
.generator {
  background: linear-gradient(to top, #121212, #1a1a2e);
  text-align: center;
}

.cta-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  border-radius: var(--border-radius);
  background-color: rgba(33, 150, 243, 0.05);
  border: 1px solid rgba(33, 150, 243, 0.2);
}

.cta-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Footer */
footer {
  background-color: var(--background-light);
  padding-top: 4rem;
  margin-top: auto;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.footer-logo {
  display: flex;
  margin-bottom: 2rem;
}

.footer-brand {
  margin-left: 1rem;
}

.footer-brand h3 {
  margin-bottom: 0.5rem;
  color: var(--text);
}

.footer-brand p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
}

.links-group {
  margin-right: 4rem;
  margin-bottom: 2rem;
}

.links-group h4 {
  color: var(--primary);
  margin-bottom: 1.2rem;
}

.links-group ul li {
  margin-bottom: 0.8rem;
}

.links-group ul li a {
  color: var(--text-muted);
}

.links-group ul li a:hover {
  color: var(--primary);
}

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

.footer-bottom p {
  margin-bottom: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .hero-content {
    flex-direction: column;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-text {
    text-align: center;
  }
  
  .button-group {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  header {
    padding: 0;
  }
  
  .menu-btn {
    display: block;
  }
  
  .menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  
  .menu-btn.open span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: var(--background-light);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    transition: right 0.3s;
    padding-top: 80px;
    z-index: 1;
  }
  
  nav.open {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    width: 100%;
  }
  
  nav ul li {
    margin: 0;
    width: 100%;
  }
  
  nav ul li a {
    display: block;
    padding: 1rem 2rem;
  }
  
  nav ul li a:hover::after {
    width: 0;
  }
  
  .feature {
    flex-direction: column;
    text-align: center;
  }
  
  .feature-number {
    margin-right: 0;
    margin-bottom: 1rem;
  }
  
  .footer-top {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  section {
    padding: 4rem 0;
  }
  
  .header-container, 
  .container {
    width: 95%;
  }
  
  .btn {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .cube-container {
    width: 150px;
    height: 150px;
  }
  
  .face {
    width: 150px;
    height: 150px;
  }
  
  .front {
    transform: translateZ(75px);
  }
  
  .back {
    transform: rotateY(180deg) translateZ(75px);
  }
  
  .right {
    transform: rotateY(90deg) translateZ(75px);
  }
  
  .left {
    transform: rotateY(-90deg) translateZ(75px);
  }
  
  .top {
    transform: rotateX(90deg) translateZ(75px);
  }
  
  .bottom {
    transform: rotateX(-90deg) translateZ(75px);
  }
}
