/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Dark Theme Colors */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-tertiary: #1a1a1a;
  --bg-card: #141414;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a3a3a3;
  --text-muted: #6b7280;

  /* Language Colors */
  --logic-color: #3b82f6;
  --html-color: #a855f7;
  --js-color: #fbbf24;
  --java-color: #ef4444;
  --php-color: #6366f1;
  --python-color: #10b981;

  /* Complementary Colors */
  --wordpress-color: #21759b;
  --android-color: #3ddc84;
  --game-color: #ff6b6b;
  --domain-color: #06b6d4;

  /* Accent Colors */
  --accent-primary: #06b6d4;
  --accent-secondary: #8b5cf6;

  /* Border and Divider */
  --border-color: #262626;
  --divider-color: #1f1f1f;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);

  /* Spacing */
  --container-width: 1200px;
  --section-padding: 80px 20px;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Grid Background */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  z-index: 1000;
}

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

.logo img {
  height: 40px;
  width: auto;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.main-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--bg-secondary);
  padding: 30px;
  transition: right 0.3s;
  z-index: 2000;
}

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

.close-menu {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  margin-bottom: 30px;
}

.mobile-menu ul {
  list-style: none;
}

.mobile-menu li {
  margin-bottom: 20px;
}

.mobile-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 18px;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-size: 14px;
}

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

.btn-primary:hover {
  background: var(--text-secondary);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background: var(--bg-card);
  border-color: var(--text-secondary);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* Hero Section */
.hero {
  position: relative;
  padding: 180px 20px 100px;
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.code-bracket {
  color: var(--accent-primary);
  font-weight: 700;
}

.hero-title {
  font-size: 72px;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 30px;
  letter-spacing: -2px;
}

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

.hero-description {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

.hero-info {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}

.info-item i {
  color: var(--accent-primary);
}

/* Stats Section */
.stats-section {
  position: relative;
  padding: 60px 20px;
  z-index: 1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
}

.stat-card {
  background: var(--bg-card);
  padding: 40px 30px;
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 900;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.stat-description {
  font-size: 14px;
  color: var(--text-secondary);
}

/* About Section */
.about-section {
  position: relative;
  padding: var(--section-padding);
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  display: grid;
  gap: 60px;
}

.about-text {
  max-width: 900px;
  margin: 0 auto;
}

.about-text p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

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

.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Languages Section */
.languages-section {
  position: relative;
  padding: var(--section-padding);
  background: var(--bg-secondary);
  z-index: 1;
}

.languages-grid {
  display: grid;
  gap: 20px;
}

.language-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
}

.language-card:hover {
  border-color: var(--text-secondary);
}

.language-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px;
  cursor: pointer;
}

.language-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
}

.logic-color {
  background: rgba(59, 130, 246, 0.1);
  color: var(--logic-color);
}

.html-color {
  background: rgba(168, 85, 247, 0.1);
  color: var(--html-color);
}

.js-color {
  background: rgba(251, 191, 36, 0.1);
  color: var(--js-color);
}

.java-color {
  background: rgba(239, 68, 68, 0.1);
  color: var(--java-color);
}

.php-color {
  background: rgba(99, 102, 241, 0.1);
  color: var(--php-color);
}

.python-color {
  background: rgba(16, 185, 129, 0.1);
  color: var(--python-color);
}

.language-info {
  flex: 1;
}

.language-info h3 {
  font-size: 22px;
  margin-bottom: 5px;
}

.language-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.expand-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.3s;
}

.language-card.active .expand-btn {
  transform: rotate(180deg);
}

.language-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.language-card.active .language-content {
  max-height: 2000px;
  transition: max-height 0.5s ease-in;
}

.topics-list {
  list-style: none;
  padding: 0 30px 30px;
}

.topics-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 15px;
}

.topics-list li:last-child {
  border-bottom: none;
}

.topics-list li:before {
  content: "▹";
  color: var(--accent-primary);
  margin-right: 10px;
  font-weight: bold;
}

/* Complementary Section */
.complementary-section {
  position: relative;
  padding: var(--section-padding);
  z-index: 1;
}

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

.complementary-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  transition: all 0.3s;
}

.complementary-card:hover {
  border-color: var(--text-secondary);
  transform: translateY(-5px);
}

.complementary-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.wordpress-color {
  background: rgba(33, 117, 155, 0.1);
  color: var(--wordpress-color);
}

.android-color {
  background: rgba(61, 220, 132, 0.1);
  color: var(--android-color);
}

.game-color {
  background: rgba(255, 107, 107, 0.1);
  color: var(--game-color);
}

.domain-color {
  background: rgba(6, 182, 212, 0.1);
  color: var(--domain-color);
}

.complementary-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.complementary-card > p {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
}

.details-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.details-btn:hover {
  background: var(--bg-secondary);
}

.details-btn i {
  transition: transform 0.3s;
}

.complementary-card.active .details-btn i {
  transform: rotate(180deg);
}

.complementary-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.complementary-card.active .complementary-content {
  max-height: 1000px;
  transition: max-height 0.5s ease-in;
  margin-top: 20px;
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: var(--section-padding);
  background: var(--bg-secondary);
  z-index: 1;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.cta-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 30px;
  letter-spacing: -1px;
}

.cta-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.cta-info {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}

.cta-info-item i {
  color: var(--accent-primary);
}

/* Footer */
.footer {
  position: relative;
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 60px 20px 30px;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo {
  height: 40px;
  margin-bottom: 20px;
}

.footer-about p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 14px;
}

.footer-contact {
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 10px;
}

.contact-item i {
  color: var(--accent-primary);
}

.footer-social-icons {
  display: flex;
  gap: 15px;
}

.footer-social-icons a {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.3s;
}

.footer-social-icons a:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border-color: var(--accent-primary);
}

.footer-links h3 {
  font-size: 18px;
  margin-bottom: 20px;
}

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

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

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

.footer-location p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    padding: 140px 20px 60px;
  }

  .hero-title {
    font-size: 48px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .section-title {
    font-size: 36px;
  }

  .cta-title {
    font-size: 36px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .complementary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 28px;
  }

  .cta-title {
    font-size: 28px;
  }

  .btn-lg {
    padding: 14px 24px;
    font-size: 14px;
  }
}
