@import "./global.css";

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.geo-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.geo-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(26, 58, 107, 0.05) 0%,
    transparent 70%
  );
  border-radius: 50%;
}
.geo-bg::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(245, 166, 35, 0.07) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  font-family: "Montserrat", sans-serif;
  background: rgba(247, 248, 252, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}
.header.scrolled {
  padding: 10px 24px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lang-switcher {
  border: 1.5px solid var(--primary);
  background: transparent;
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
}
.lang-switcher:focus {
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
}
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.logo-icon {
  width: 44px;
  height: 44px;
  background: #00000000;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: "Montserrat", sans-serif;
  font-weight: 900;
  font-size: 17px;
  position: relative;
  overflow: hidden;
}
.logo-icon::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 60%
  );
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}
.logo-icon img {
  width: 44px;
}
.logo-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 24px;
  color: var(--primary-dark);
}
.logo-text span {
  color: var(--accent);
}
.header-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--primary);
  transition: all 0.3s ease;
}
.header-phone:hover {
  background: var(--primary);
  color: white;
}
.header-phone svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* HERO */
.hero {
  position: relative;
  z-index: 1;
  padding: 120px 24px 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content {
  animation: fadeInUp 0.8s ease;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(26, 58, 107, 0.07);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}
.hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--primary-dark);
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}
.hero-title .highlight {
  position: relative;
  color: var(--primary);
  display: inline-block;
}
.hero-title .highlight::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 14px;
  background: rgba(245, 166, 35, 0.25);
  border-radius: 4px;
  z-index: -1;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  gap: 36px;
}
.stat-item {
  text-align: left;
}
.stat-number {
  font-family: "Montserrat", sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -1px;
  line-height: 1;
}
.stat-number .a {
  color: var(--accent);
}
.stat-label {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 4px;
  font-weight: 500;
}

/* FORM */
.form-card {
  background: var(--bg-card);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.form-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.form-header {
  text-align: center;
  margin-bottom: 28px;
}
.form-title {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
}
.form-subtitle {
  font-size: 14px;
  color: var(--text-light);
}
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.form-input,
.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  transition: all 0.25s ease;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-input::placeholder {
  color: var(--text-light);
}
.form-input:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
  background: white;
}
.form-input.error,
.form-select.error {
  border-color: var(--error);
}
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238888A0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.phone-input-wrapper {
  display: flex;
  align-items: stretch;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.25s ease;
  background: var(--bg);
}
.phone-input-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 107, 0.1);
  background: white;
}
.phone-input-wrapper.error {
  border-color: var(--error);
}
.phone-prefix {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(0, 0, 0, 0.02);
  border-right: 1px solid var(--border);
  white-space: nowrap;
  gap: 6px;
}
.phone-prefix .flag {
  font-size: 18px;
}
.phone-input {
  flex: 1;
  border: none;
  padding: 14px 16px;
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  color: var(--text);
  outline: none;
  background: transparent;
}
.phone-input::placeholder {
  color: var(--text-light);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.submit-btn {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--primary-dark);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}
.submit-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}
.submit-btn:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-glow));
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(245, 166, 35, 0.35);
}
.submit-btn:hover::before {
  transform: translateX(100%);
}
.submit-btn:active {
  transform: translateY(0);
}
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}
.form-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-light);
}
.form-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 4px;
  display: none;
}
.form-error.visible {
  display: block;
}

/* COURSES */
.courses {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.section-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: -1px;
}
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.course-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1.5px solid var(--border);
  transition: all 0.35s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}
.course-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.course-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.course-card:hover::after {
  transform: scaleX(1);
}
.course-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.course-icon.ielts {
  background: rgba(26, 58, 107, 0.1);
}
.course-icon.english {
  background: rgba(34, 197, 94, 0.1);
}
.course-icon.sat {
  background: rgba(168, 85, 247, 0.1);
}
.course-icon.math {
  background: rgba(245, 166, 35, 0.1);
}
.course-icon.ogp {
  background: rgba(239, 68, 68, 0.1);
}
.course-name {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.course-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.5;
}

/* WHY */
.why {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  background: var(--primary-dark);
  color: white;
  overflow: hidden;
}
.why::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(245, 166, 35, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
}
.why .section-tag {
  color: var(--accent);
}
.why .section-title {
  color: white;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.why-item {
  padding: 32px 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}
.why-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}
.why-icon {
  font-size: 28px;
  margin-bottom: 16px;
}
.why-title {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.why-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}

/* LOCATION */
.location {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
}
.location-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.location-map {
  width: 100%;
  height: 280px;
  border: none;
}
.map-placeholder {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.map-placeholder svg {
  display: block;
  width: 100%;
  height: auto;
}
.map-overlay {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 8px 20px;
  border-radius: 100px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
  transition: all 0.3s ease;
}
.map-placeholder:hover .map-overlay {
  background: var(--primary);
  color: white;
}
.map-buttons {
  display: flex;
  gap: 8px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
}
.map-btn {
  flex: 1;
  text-align: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary);
  background: rgba(26, 58, 107, 0.05);
  transition: all 0.25s ease;
  white-space: nowrap;
}
.map-btn:hover {
  background: var(--primary);
  color: white;
}
.location-info {
  padding: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.location-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.location-detail .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(26, 58, 107, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.location-detail strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}
.location-detail a {
  color: var(--primary);
  text-decoration: none;
}

/* CTA */
.cta {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  text-align: center;
}
.cta-inner {
  max-width: 600px;
  margin: 0 auto;
}
.cta-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 12px;
}
.cta-text {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}
.cta-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 58, 107, 0.25);
}

/* FOOTER */
.footer {
  position: relative;
  z-index: 1;
  padding: 32px 24px;
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  font-size: 13px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover {
  color: white;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(14, 34, 68, 0.6);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.active {
  display: flex;
}
.modal {
  background: white;
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: modalIn 0.4s ease;
}
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 36px;
}
.modal-title {
  font-family: "Montserrat", sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 8px;
}
.modal-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}
.modal-close {
  padding: 12px 32px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-family: "Montserrat", sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
.modal-close:hover {
  background: var(--primary-light);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero {
    padding-top: 100px;
    min-height: auto;
  }
  .hero-content {
    text-align: center;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-stats {
    justify-content: center;
  }
  .form-card {
    padding: 32px 24px;
  }
  .location-info {
    padding: 24px;
  }
}
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    gap: 20px;
  }
  .stat-number {
    font-size: 28px;
  }
  .header-phone .phone-text {
    display: none;
  }
  .footer-inner {
    flex-direction: column;
  }
  .location-info {
    flex-direction: column;
    align-items: flex-start;
  }
}
