/* General Styles */
* {
  font-family: 'Fontin Sans', sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Fontin Sans', sans-serif;
  background: #f5f0e8;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 0;
  overflow-x: hidden;
  width: 100vw;
  box-sizing: border-box;
}

.background-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('image.png') center 0px / cover no-repeat;
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

body > * {
  position: relative;
  z-index: 1;
}

.container-row {
  display: flex;
  gap: 0px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0px;
  width: 100%;
}

/* Header Section */
.header {
  width: 100%;
  background: #1e40af;
  color: white;
  padding: 2px 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 200;
  position: relative;
  overflow: visible;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 2px 24px;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  margin-right: auto;
  margin-left: -10px;
}

.logo-img {
  height: 120px;
  width: auto;
  object-fit: contain;
  margin: -20px 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.nav-link:hover {
  opacity: 0.8;
}

/* Responsive Header */
@media (max-width: 768px) {
  .nav-links {
    gap: 16px;
  }
  
  .logo {
    font-size: 24px;
  }
}

.card { 
  max-width: 520px;
  width: 100%;
  background: #fff;
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 40px 32px; 
  font-size: 1.15rem;
  margin: 80px auto 24px auto;
  box-sizing: border-box;
}

.title {
  font-size: 2rem;
  font-weight: bold;
  color: #1e293b;
  margin-top: 60px;
  margin-bottom: 60px;
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDown 0.6s forwards;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
  max-width: 100%;
}

.desc {
  color: #64748b;
  text-align: center;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 400;
}
.input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

input[type="text"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 16px;
  font-family: 'Fontin Sans', sans-serif;
}

button {
  padding: 8px 16px;
  background: #1e40af;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: 'Fontin Sans', sans-serif;
}

button:disabled {
  background: #a5b4fc;
  cursor: not-allowed;
}
.result {
  text-align: center;
  margin-top: 24px;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.5s forwards;
}

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

@keyframes fadeInDown {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.subtitle {
  font-size: 1.1rem;
  color: #64748b;
  text-align: center;
  margin-top: -45px;
  margin-bottom: 0;
  font-weight: 400;
  opacity: 0;
  transform: translateY(-20px);
  animation: fadeInDown 0.6s forwards 0.2s;
  animation-fill-mode: forwards;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}
.result-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
}

/* CEFR Overall Section */
.cefr-overall {
  padding: 24px;
  border-radius: 12px;
  color: white;
  margin: 20px 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  animation: fadeIn 0.6s ease-in;
}

.cefr-label {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  opacity: 0.9;
}

.cefr-level {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.cefr-description {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  opacity: 0.95;
}

.average-score-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 16px;
  margin-bottom: 8px;
  opacity: 0.85;
}

.average-score-value {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.15);
  opacity: 0.98;
}

/* Vocabulary Parameters Section */
.vocabulary-parameters-section {
  margin: 32px 0;
  padding: 24px;
  background: #f8fafc;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
}

.parameters-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

.parameters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.parameter-card {
  background: white;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  text-align: center;
}

.parameter-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  border-color: #1e40af;
}

.parameter-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.parameter-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 8px;
}

.parameter-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.3;
  margin-bottom: 0;
}

/* Assessment Section */
.combined-assessment-section {
  margin: 32px 0;
  padding: 20px;
  background: linear-gradient(135deg, #f5f3ff 0%, #fff5f3 100%);
  border-radius: 12px;
  border: 2px solid #d8bfd8;
}

.combined-assessment-section h3 {
  margin: 0 0 20px 0;
  color: #1e293b;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.assessment-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.assessment-item {
  background: white;
  padding: 16px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  text-align: center;
}

.assessment-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.assessment-value {
  font-size: 2rem;
  font-weight: 700;
  color: #a855f7;
  margin-bottom: 8px;
}

.assessment-desc {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.4;
}

.combined-feedback {
  background: white;
  padding: 24px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  display: flex;
  gap: 16px;
  align-items: center;
}

.feedback-text {
  font-size: 1.05rem;
  color: #1e293b;
  font-weight: 500;
  line-height: 1.6;
}

.levels-legend {
  margin-top: 0px;
  padding: 18px 32px;
  background: #fff8e1;
  border-radius: 1rem;
  font-size: 1.1rem;
  color: #7c6f57;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: center;
  max-width: 600px;
  width: 100%;
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.about-section {
  width: 100%;
  padding: 60px 24px;
  background: #f8fafc;
  margin-top: 180px;
  box-sizing: border-box;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}

.about-section h2 {
  font-size: 2.5rem;
  color: #1e293b;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

.about-card {
  background: white;
  padding: 32px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.about-card h3 {
  font-size: 1.5rem;
  color: #1e40af;
  margin-top: 0;
  margin-bottom: 16px;
  font-weight: 700;
}

.about-card p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}

.about-card strong {
  color: #1e293b;
  font-weight: 600;
}

.about-card-wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
  border: none;
  text-align: center;
}

.about-card-wide h3 {
  color: #1e40af;
  font-size: 1.8rem;
}

.about-card-wide p {
  text-align: center;
}

/* Contact Footer Section */
.contact-footer {
  width: 100%;
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: white;
  padding: 16px 24px;
  margin-top: 60px;
  box-sizing: border-box;
  border-top: 2px solid #3b82f6;
  position: relative;
  z-index: 1;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

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

.contact-content h4 {
  font-size: 0.9rem;
  margin: 0 0 6px 0;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  opacity: 0.95;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.contact-info span {
  color: #e0e7ff;
  opacity: 0.9;
}

.contact-info a {
  color: #e0e7ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #fbbf24;
  text-decoration: underline;
}

.copyright {
  font-size: 0.75rem;
  color: #bfdbfe;
  margin: 0;
  opacity: 0.75;
}

.background-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
  opacity: 0.18;
  pointer-events: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .logo-img {
    height: 90px;
  }
  
  .cefr-level {
    font-size: 2.5rem;
  }
  
  .card {
    padding: 24px 20px;
  }
  
  .title {
    font-size: 1.5rem;
  }
  
  .assessment-row {
    grid-template-columns: 1fr;
  }
  
  .combined-feedback {
    flex-direction: column;
    text-align: center;
  }
}
