:root {
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-input: #111827;

  --text-main: #f8fafc;
  --text-muted: #cbd5e1;
  --text-soft: #94a3b8;

  --accent: #60a5fa;
  --accent-soft: #93c5fd;

  --border: #334155;
}

body.light-mode {
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --bg-input: #f1f5f9;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;

  --border: #cbd5e1;
}

body.light-mode .header {
  background-color: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(203, 213, 225, 0.9);
}

body.light-mode .theme-toggle::before {
  transform: translateX(40px);
}

body.light-mode .hero-image {
  background-color: #e2e8f0;
}

body.light-mode .project-image span {
  background-color: #e2e8f0;
  color: #0f172a;
}

body.light-mode .contact-form input,
body.light-mode .contact-form textarea {
  background-color: #ffffff;
  color: #0f172a;
}

body.light-mode .contact-form input:focus,
body.light-mode .contact-form textarea:focus {
  background-color: #f8fafc;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: 0.5rem 1rem;
  background-color: var(--accent);
  color: #0f172a;
  font-weight: 700;
  z-index: 1001;
}

.skip-link:focus {
  top: 0;
}

/* CERTIFICATES */

.certificates {
  border-top: 1px solid var(--border);
}

.certificates-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.certificate-group {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.certificate-group summary {
  padding: 28px 32px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  cursor: pointer;
  list-style: none;

  font-size: 26px;
  font-weight: 800;
  color: var(--text-main);

  transition: background-color 0.2s ease;
}

.certificate-group summary:hover {
  background-color: rgba(96, 165, 250, 0.08);
}

.certificate-group summary::-webkit-details-marker {
  display: none;
}

.certificate-group .arrow {
  font-size: 24px;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.certificate-group[open] .arrow {
  transform: rotate(180deg);
}

.certificate-group ul {
  padding: 0 32px 28px 56px;

  display: flex;
  flex-direction: column;
  gap: 16px;
}

.certificate-group li {
  color: var(--accent-soft);
  font-size: 18px;
}

.certificate-group a {
  color: var(--text-muted);
  font-size: 18px;
  transition: color 0.2s ease;
}

.certificate-group a:hover {
  color: var(--accent-soft);
}

.hero-content h1,
.section-heading h2,
.about h2,
.contact h2 {
  font-family: "Bebas Neue", Arial, Helvetica, sans-serif;
  font-weight: 400;
  letter-spacing: 1px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 110px 100px;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  background-color: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(12px);

  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}

.navbar {
  max-width: 1440px;
  height: 82px;
  margin: 0 auto;
  padding: 0 100px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 36px;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.translate-btn {
  height: 42px;
  padding: 0 16px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background-color: var(--bg-card);
  color: var(--text-main);

  display: inline-flex;
  align-items: center;
  gap: 8px;

  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.translate-btn:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.translate-icon {
  font-size: 16px;
}

.theme-toggle {
  width: 82px;
  height: 42px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background-color: var(--bg-card);
  color: var(--text-main);

  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;

  position: relative;

  cursor: pointer;

  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
}

.theme-toggle span {
  position: relative;
  z-index: 2;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 15px;
}

.theme-toggle::before {
  content: "";

  width: 34px;
  height: 34px;

  position: absolute;
  top: 3px;
  left: 4px;

  border-radius: 50%;
  background-color: var(--accent);

  transition: transform 0.25s ease;
}

.logo {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.8px;
  line-height: 1;
  color: var(--text-main);
  text-transform: uppercase;
}

.nav-links {
  list-style: none;

  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-links a {
  font-size: 17px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

/* HERO */

.hero {
  min-height: calc(100vh - 82px);

  display: grid;
  grid-template-columns: 1fr 1.1fr;
  align-items: center;
  gap: 70px;

  padding-top: 60px;
  padding-bottom: 90px;
}

.hero-content h1 {
  font-size: 96px;
  line-height: 0.9;
  margin-bottom: 28px;
}

.hero-content p {
  max-width: 620px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 42px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 18px 34px;
  border-radius: 999px;

  background-color: var(--accent);
  color: #0f172a;

  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;

  box-shadow: 0 10px 30px rgba(96, 165, 250, 0.18);

  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  background-color: var(--accent-soft);
  box-shadow: 0 14px 35px rgba(96, 165, 250, 0.28);
}

.icon-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background-color: var(--accent-soft);
  color: #0f172a;

  font-size: 15px;
  font-weight: 800;

  transition: transform 0.2s ease, background-color 0.2s ease;
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.icon-btn:hover {
  transform: translateY(-3px);
  background-color: var(--accent);
}

.hero-image {
  background-color: #cbd5e1;
  border-radius: 18px;
  overflow: hidden;

  height: 560px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* SECTION HEADING */

.section-heading {
  margin-bottom: 90px;
}

.section-heading h2,
.about h2,
.contact h2 {
  font-size: 72px;
  line-height: 1;
  letter-spacing: -2px;
  margin-bottom: 28px;
}

.section-heading p {
  max-width: 700px;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* PROJECTS */

.projects {
  border-top: 1px solid var(--border);
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;

  margin-bottom: 140px;
}

.project-image {
  min-height: 480px;
  padding: 40px 28px 28px;

  border-radius: 14px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image span {
  position: absolute;
  top: 24px;
  left: 24px;

  padding: 12px 20px;
  border-radius: 999px;

  background-color: #334155;
  color: var(--text-main);

  font-size: 15px;
}

.project-image img {
  width: 92%;
  max-height: 340px;
  border-radius: 12px;
  object-fit: contain;
}

.project-info h3 {
  font-size: 38px;
  line-height: 1.2;
  margin-bottom: 28px;
}

.project-info > p {
  font-size: 19px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 42px;
}

.project-details {
  margin-bottom: 42px;
}

.project-details div {
  padding: 20px 0;
  border-top: 1px solid var(--border);

  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
}

.project-details div:last-child {
  border-bottom: 1px solid var(--border);
}

.project-details strong {
  color: var(--text-main);
  font-size: 17px;
}

.project-details span {
  color: var(--text-muted);
  font-size: 17px;
  text-align: right;
}

.project-links {
  display: flex;
  gap: 32px;
}

.project-links a,
.about-content a,
.contact-info a {
  color: var(--accent-soft);
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid var(--accent-soft);
  padding-bottom: 4px;
}

/* ABOUT */

.about {
  border-top: 1px solid var(--border);

  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.about-content h3 {
  font-size: 38px;
  line-height: 1.35;
  font-weight: 400;
  margin-bottom: 28px;
}

.about-content p {
  font-size: 19px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 28px;
}

/* CONTACT */

.contact {
  border-top: 1px solid var(--border);

  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
}

.contact-info p {
  font-size: 20px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  gap: 24px;
  margin-top: 50px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 12px;

  font-size: 18px;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  outline: none;

  background-color: #111827;
  color: var(--text-main);

  font-size: 18px;
  padding: 18px;

  border-radius: 10px;

  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background-color: #0b1220;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form button {
  width: fit-content;

  border: none;
  cursor: pointer;

  padding: 18px 48px;
  border-radius: 999px;

  background-color: var(--accent);
  color: #0f172a;

  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;

  box-shadow: 0 10px 30px rgba(96, 165, 250, 0.18);

  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-3px);
  background-color: var(--accent-soft);
  box-shadow: 0 14px 35px rgba(96, 165, 250, 0.28);
}

.form-status {
  font-size: 16px;
  font-weight: 600;
  min-height: 1.5em;
}

.form-status.success { color: #4ade80; }
.form-status.error   { color: #f87171; }

body.light-mode .form-status.success { color: #16a34a; }
body.light-mode .form-status.error   { color: #dc2626; }

.footer {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 100px 50px;
  color: var(--text-muted);
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .section {
    padding: 80px 32px;
  }

  .navbar {
    padding: 0 32px;
  }

  .hero,
  .project-card,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-content h1,
  .section-heading h2,
  .about h2,
  .contact h2 {
    font-size: 56px;
  }

  .hero-image {
    min-height: 420px;
  }

  .project-details div {
    grid-template-columns: 1fr;
  }

  .project-details span {
    text-align: left;
  }
}

@media (max-width: 640px) {

  @media (max-width: 640px) {
  .nav-right {
    gap: 16px;
  }

  .navbar-actions {
    gap: 10px;
  }

  .translate-btn {
    height: 38px;
    padding: 0 12px;
  }

  .translate-label {
    font-size: 13px;
  }

  .theme-toggle {
    width: 72px;
    height: 38px;
  }

  .theme-toggle::before {
    width: 30px;
    height: 30px;
  }

  body.light-mode .theme-toggle::before {
    transform: translateX(34px);
  }
}
  .nav-links {
    display: none;
  }

  .hero-content h1,
  .section-heading h2,
  .about h2,
  .contact h2 {
    font-size: 46px;
  }

  .hero-content p,
  .section-heading p,
  .project-info > p,
  .about-content p {
    font-size: 17px;
  }

  .project-info h3,
  .about-content h3 {
    font-size: 30px;
  }

  .hero-actions,
  .project-links {
    flex-wrap: wrap;
  }
}