/* Global Styles */
:root {
  --primary-color: #4a6fa5;
  --secondary-color: #166088;
  --accent-color: #4fc3f7;
  --text-color: #333;
  --light-text: #f8f9fa;
  --background-color: #f5f7fa;
  --card-bg: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --gradient-start: #5c6bc0;
  --gradient-end: #26c6da;
}

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(135deg, #f5f7fa, #e4e8f0);
  min-height: 100vh;
}

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

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

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

/* Header Styles */
header {
  background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0.8));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

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

.logo img {
  height: 40px;
  margin-right: 10px;
}

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

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 2rem;
}

.nav-links a {
  font-weight: 500;
  position: relative;
  color: var(--primary-color);
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  padding: 8rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1528164344705-47542687000d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
}

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

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
}

.btn {
  display: inline-block;
  background: linear-gradient(to right, var(--accent-color), #2196f3);
  color: var(--light-text);
  padding: 0.8rem 2rem;
  border-radius: 30px;
  font-weight: 500;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: none;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
  background: linear-gradient(to right, #2196f3, var(--accent-color));
  color: var(--light-text);
}

/* Features Section */
.features {
  padding: 5rem 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(240,240,240,0.6));
}

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

.section-title h2 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  max-width: 600px;
  margin: 0 auto;
  color: #666;
}

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

.feature-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border-top: 5px solid transparent;
  border-image: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  border-image-slice: 1;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* JLPT Resources Section */
.jlpt-resources {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f1f8fe, #e4f1fd);
  position: relative;
  overflow: hidden;
}

.jlpt-resources::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1492571350019-22de08371fd3?ixlib=rb-1.2.1&auto=format&fit=crop&w=1349&q=80') center/cover no-repeat;
  opacity: 0.05;
  z-index: 0;
}

.jlpt-resources .container {
  position: relative;
  z-index: 1;
}

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

.resource-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.resource-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.resource-content {
  padding: 1.5rem;
}

.resource-content h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.resource-content p {
  margin-bottom: 1.5rem;
  color: #666;
}

/* Feedback Form */
.feedback {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f5f7fa, #e4e8f0);
}

.form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--accent-color);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--primary-color);
}

.form-control {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.2);
}

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

.error-message {
  color: #e53935;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.success-message {
  text-align: center;
  padding: 2rem;
}

.success-message h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Footer */
footer {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  padding: 3rem 0 1.5rem;
}

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

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 2px;
  background-color: var(--accent-color);
}

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

.footer-column ul li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: #ccc;
}

.footer-column a:hover {
  color: var(--light-text);
}

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

/* Privacy Page */
.privacy-content {
  max-width: 800px;
  margin: 8rem auto 5rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.8));
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.privacy-content h2 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.privacy-content h3 {
  color: var(--secondary-color);
  margin: 2rem 0 1rem;
}

.privacy-content p, .privacy-content ul {
  margin-bottom: 1.5rem;
}

.privacy-content ul {
  padding-left: 2rem;
}

/* JLPT Resource Pages */
.jlpt-content {
  max-width: 1000px;
  margin: 8rem auto 5rem;
}

.jlpt-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--light-text);
  padding: 3rem;
  border-radius: 15px 15px 0 0;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.jlpt-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://images.unsplash.com/photo-1528164344705-47542687000d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
  opacity: 0.1;
  z-index: 0;
}

.jlpt-header h2, .jlpt-header p {
  position: relative;
  z-index: 1;
}

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

.jlpt-card {
  background-color: var(--card-bg);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.jlpt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.jlpt-card-header {
  background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
  color: var(--light-text);
  padding: 1rem;
  text-align: center;
}

.jlpt-card-body {
  padding: 1.5rem;
}

.jlpt-card-body ul {
  list-style: none;
}

.jlpt-card-body ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.jlpt-card-body ul li:last-child {
  border-bottom: none;
}

.study-tips {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  margin-top: 3rem;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--accent-color);
}

.study-tips h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.comparison-section {
  margin-top: 3rem;
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.comparison-section h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.comparison-table th, .comparison-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.comparison-table th {
  background-color: #f8f9fa;
  color: var(--primary-color);
}

.comparison-table tr:hover {
  background-color: #f8f9fa;
}

.section-intro {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #555;
}

/* Featured Resource Section */
.featured-resource {
  margin: 2rem 0 3rem;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  position: relative;
}

.featured-resource::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/japanese-pattern.svg');
  opacity: 0.1;
  z-index: 0;
}

.featured-content {
  padding: 2.5rem;
  position: relative;
  z-index: 1;
  color: var(--light-text);
  text-align: center;
}

.featured-content h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.featured-content p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
}

.btn-featured {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  padding: 0.8rem 2.5rem;
}

.btn-featured:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,255,255,0.9));
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links li {
    margin: 1.5rem 0;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .privacy-content, .form-container {
    padding: 1.5rem;
    margin: 6rem auto 3rem;
  }
  
  .jlpt-content {
    margin: 6rem auto 3rem;
  }
  
  .jlpt-header {
    padding: 2rem;
  }
  
  .featured-content {
    padding: 2rem 1.5rem;
  }
  
  .featured-content h3 {
    font-size: 1.5rem;
  }
  
  .featured-content p {
    font-size: 1rem;
  }
} 