/* BearCasual - Cyberpunk Dark Mode Style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #00ff88;
  --secondary-color: #ff006e;
  --tertiary-color: #00d9ff;
  --dark-bg: #0a0e27;
  --card-bg: #1a1f3a;
  --text-primary: #e0e7ff;
  --text-secondary: #a0aec0;
  --border-color: #2a3f5f;
  --accent-glow: #00ff88;
  --shadow-color: rgba(0, 255, 136, 0.2);
}

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

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--tertiary-color);
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
  color: var(--text-primary);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
  animation: glitch-text 3s infinite;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(45deg, var(--primary-color), var(--tertiary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--tertiary-color);
}

p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

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

a:hover::after {
  width: 100%;
}

a:hover {
  color: var(--tertiary-color);
  text-shadow: 0 0 10px rgba(0, 217, 255, 0.5);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary-color);
  text-shadow: 0 0 20px var(--shadow-color);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo:hover {
  transform: scale(1.1);
  text-shadow: 0 0 30px rgba(0, 255, 136, 0.8);
}

.logo svg {
  width: 40px;
  height: 40px;
}

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

.nav-links a {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 0.5rem;
}

.nav-links a.active {
  color: var(--primary-color);
  text-shadow: 0 0 10px var(--shadow-color);
}

.nav-links a::after {
  height: 3px;
  background: var(--primary-color);
}

.cta-btn {
  background: linear-gradient(45deg, var(--primary-color), var(--tertiary-color));
  color: #000;
  padding: 0.7rem 1.5rem;
  border-radius: 5px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

.cta-btn:hover {
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.8);
  transform: translateY(-3px);
}

/* Hero Section */
.hero {
  margin-top: 80px;
  min-height: clamp(360px, 62vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 2rem 0 1.5rem;
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.9) 0%, rgba(26, 31, 58, 0.9) 50%, rgba(22, 33, 62, 0.9) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 50%;
  height: 150%;
  background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
  animation: float 20s infinite ease-in-out;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -50%;
  left: -5%;
  width: 40%;
  height: 150%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.1) 0%, transparent 70%);
  animation: float 25s infinite ease-in-out reverse;
  pointer-events: none;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(50px);
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 1.25rem 1.25rem 1rem;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 0.9rem;
  animation: glitch-text 3s infinite;
}

@keyframes glitch-text {
  0% {
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
  }
  50% {
    text-shadow: 0 0 50px rgba(0, 255, 136, 0.8), -2px 0 rgba(255, 0, 110, 0.8);
  }
  100% {
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
  }
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
  color: var(--text-secondary);
  animation: fadeInUp 1.5s ease;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 2s ease;
}

.btn {
  padding: 0.9rem 2rem;
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  z-index: -1;
  transition: left 0.3s ease;
}

.btn-primary {
  color: #000;
  background: var(--primary-color);
}

.btn-primary:hover {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
  transform: translateY(-3px);
}

.btn-secondary {
  color: var(--primary-color);
  background: transparent;
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.6);
  transform: translateY(-3px);
}

/* Section Styling */
section {
  padding: 5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.section-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 3px;
  background: linear-gradient(45deg, var(--primary-color), var(--tertiary-color));
  margin: 1rem auto;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.services-grid.services-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .services-grid.services-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(26, 31, 58, 0.8) 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: slideIn 0.6s ease;
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.service-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3), inset 0 0 20px rgba(0, 255, 136, 0.1);
  transform: translateY(-5px);
}

.service-card:hover::before {
  left: 100%;
}

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 5px rgba(0, 255, 136, 0.5));
}

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

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.team-grid.team-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .team-grid.team-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .team-grid.team-grid-3 {
    grid-template-columns: 1fr;
  }
}

.team-member {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(26, 31, 58, 0.8) 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: slideIn 0.6s ease;
}

.team-member:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
  transform: translateY(-5px);
}

.member-avatar {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 217, 255, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  border-bottom: 2px solid var(--border-color);
}

.member-info {
  padding: 1.5rem;
}

.member-info h4 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.member-role {
  color: var(--tertiary-color);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.member-info p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
}

@media (max-width: 1100px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.feature {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.5) 0%, transparent 100%);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
  animation: slideIn 0.6s ease;
}

.feature:hover {
  background: linear-gradient(135deg, rgba(26, 31, 58, 0.8) 0%, rgba(0, 255, 136, 0.1) 100%);
  border-color: var(--primary-color);
  transform: translateY(-5px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 8px rgba(0, 255, 136, 0.6));
}

.feature h4 {
  color: var(--tertiary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.feature p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

.news-grid.news-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tech-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .news-grid.news-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tech-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .tech-grid-3 {
    grid-template-columns: 1fr;
  }
}

.news-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(26, 31, 58, 0.8) 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  animation: slideIn 0.6s ease;
}

.news-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
  transform: translateY(-5px);
}

.news-date {
  background: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
  color: #000;
  padding: 1.5rem;
  text-align: center;
  font-weight: 700;
  font-size: 1.2rem;
}

.news-content {
  padding: 1.5rem;
}

.news-card h4 {
  color: var(--tertiary-color);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.news-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(26, 31, 58, 0.8) 100%);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  animation: slideIn 0.6s ease;
}

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

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--tertiary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

input,
textarea {
  width: 100%;
  padding: 0.9rem;
  background: rgba(10, 14, 39, 0.8);
  border: 2px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
  background: rgba(10, 14, 39, 0.95);
}

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

.form-group textarea::placeholder,
.form-group input::placeholder {
  color: var(--text-secondary);
}

/* Footer */
footer {
  background: rgba(10, 14, 39, 0.95);
  border-top: 2px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
  margin-top: 5rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

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

.footer-section ul li {
  margin-bottom: 0.7rem;
}

.footer-section a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

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

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

.footer-bottom p {
  margin-bottom: 0.5rem;
}

/* Utilities */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

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

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  nav {
    padding: 1rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.85rem;
  }

  .hero {
    margin-top: 68px;
    min-height: clamp(300px, 52vh, 460px);
    padding: 1.25rem 0 1rem;
  }

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

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }

  .services-grid,
  .team-grid,
  .features-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 3rem 1rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Animation: Pulse Glow */
@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.8);
  }
}

.glow {
  animation: pulse-glow 2s infinite;
}

/* Loading Animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  animation: spin 2s linear infinite;
}
