:root {
  --bg: #0b0f1e;
  --bg-soft: #121735;
  --text: #e5e7eb;
  --muted: #9aa4b2;
  --accent: #8b5cf6;
  --border: rgba(255, 255, 255, 0.08);
  --card: rgba(255, 255, 255, 0.04);
  --success: #22c55e;
  --error: #ef4444;
}

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

html,
body {
  height: 100%;
}

body {
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, #1b1f49 0%, transparent 60%),
    radial-gradient(1200px 600px at 90% 10%, #10163a 0%, transparent 60%),
    linear-gradient(180deg, var(--bg), #0a0d1a 60%, #080a14 100%);
  line-height: 1.6;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
}

.link {
  color: var(--accent);
  text-decoration: underline;
}

/* Header / Nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 7, 15, 0.5);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

nav {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.left {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.right ul {
  list-style: none;
  display: flex;
  gap: 22px;
}

.right a {
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
  color: var(--muted);
}

.right a:hover {
  background: var(--card);
  color: var(--text);
}

/* Sections */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 20px 80px;
}

.firstSection {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  min-height: 70vh;
}

.leftSection .intro {
  font-size: 1.9rem;
  font-weight: 600;
}

.purple {
  color: var(--accent);
}

#element {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  margin-top: 8px;
}

.buttons {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--accent);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, opacity .2s ease;
  font-weight: 600;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn:hover {
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), rgba(59, 130, 246, 0.15));
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
}

.rightSection img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

/* Divider */
hr {
  margin: 40px 0;
  border: none;
  height: 1px;
  background: var(--border);
}

/* Learning Experience */
.secondSection {
  margin-top: 10px;
}

.secondSection .text-gray {
  color: var(--muted);
  font-size: 0.95rem;
}

.secondSection h1 {
  font-size: 2rem;
  margin-top: 6px;
  margin-bottom: 18px;
}

.box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.vertical {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
}

.vertical:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.15);
}

.image-top {
  font-size: 46px;
  line-height: 1;
}

.vertical-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.vertical-desc {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Contact */
.contactSection {
  margin-top: 10px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-info h1 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.text-gray {
  color: var(--muted);
}

.contact-card {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
}

.contactForm {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

label {
  font-weight: 600;
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #7a8393;
}

input:focus,
textarea:focus {
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15);
  background: rgba(255, 255, 255, 0.04);
}

.invalid {
  border-color: rgba(239, 68, 68, 0.7) !important;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

.hp {
  display: none !important;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.form-status {
  min-height: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--error);
}

/* Footer */
.footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.footer-one {
  font-weight: 700;
  color: var(--text);
}

/* Responsive */
@media (max-width: 900px) {
  .firstSection {
    grid-template-columns: 1fr;
  }

  .leftSection .intro {
    font-size: 1.6rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  nav {
    padding: 12px 14px;
  }

  .right ul {
    gap: 10px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}