:root {
  --primary-color: #007aff;
  --accent-color: #00f2fe;
  --bg-dark: #050505;
  --card-bg: rgba(255, 255, 255, 0.05);
  --text-main: #ffffff;
  --text-dim: #a0a0a0;
  --glass-border: rgba(255, 255, 255, 0.1);
  --transition-speed: 0.4s;
}

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

body {
  font-family: 'Inter', 'Outfit', 'Noto Sans JP', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scroll Smoothing */
html {
  scroll-behavior: smooth;
}

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

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition-speed);
}

header.scrolled {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(10px);
  padding: 15px 50px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-speed);
  opacity: 0.8;
}

nav a:hover {
  opacity: 1;
  color: var(--accent-color);
}

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

#hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.7));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-dim);
  max-width: 600px;
  margin-bottom: 40px;
  animation: fadeInUp 1.2s ease-out;
}

.btn {
  padding: 15px 40px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  border: none;
  border-radius: 50px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(0, 122, 255, 0.4);
}

/* Sections */
section {
  padding: 100px 10%;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 60px;
}

.section-title span {
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.service-card {
  padding: 40px;
  transition: var(--transition-speed);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.08);
}

.service-image {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 10px;
}

.service-card h3 {
  font-size: 1.5rem;
}

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

/* News Section */
.news-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background: var(--card-bg);
  border-radius: 15px;
  border: 1px solid var(--glass-border);
}

.news-date {
  font-size: 0.8rem;
  color: var(--accent-color);
  font-weight: 600;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-details {
  margin-top: 30px;
}

.detail-row {
  display: flex;
  padding: 15px 0;
  border-bottom: 1px solid var(--glass-border);
}

.detail-label {
  width: 150px;
  font-weight: 600;
  color: var(--text-dim);
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.1);
}

.contact-form .btn {
  align-self: center;
  margin-top: 10px;
  cursor: pointer;
}

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

/* Footer */
footer {
  padding: 80px 10% 40px;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.social-links {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  color: var(--text-dim);
  font-size: 1.5rem;
  transition: 0.3s;
}

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

.copyright {
  color: #555;
  font-size: 0.8rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  header {
    padding: 15px 20px;
  }
  nav {
    display: none; /* Add active state with JS for mobile menu */
  }
  .about-content {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 3rem;
  }
}
