:root {
  --bg-color: #0b0f19;
  --card-bg: #131c2e;
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --accent: #38bdf8;
  --border: #1f2937;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

/* Hero & Parallax Section */
.hero-parallax {
  position: relative;
  height: 60vh;
  background-image:
    linear-gradient(to bottom, rgba(11, 15, 25, 0.7), var(--bg-color)),
    url("/images/banner.jpg");
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 0.5rem;
}

.hero-content .subtitle {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Modern Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.lang-switcher span {
  color: var(--border);
}

.lang-btn {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.lang-btn:hover {
  color: var(--text-main);
}

.active-lang {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent) !important;
}

/* Main Layout Wrapper */
.wrapper {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

section {
  margin-bottom: 5rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::before {
  content: "//";
  color: var(--accent);
}

.about-text {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Timeline Section */
.timeline {
  position: relative;
  border-left: 2px solid var(--border);
  padding-left: 1.75rem;
  margin-left: 0.5rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.75rem - 7px);
  top: 0.35rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.job-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.job-company {
  color: var(--accent);
  font-weight: 500;
}

.job-date {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    border-color 0.2s,
    transform 0.2s;
}

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

.project-top {
  margin-bottom: 1.5rem;
}

.project-title-area {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.project-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.project-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

input,
textarea {
  background: var(--bg-color);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.75rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

button {
  background: var(--accent);
  color: var(--bg-color);
  border: none;
  padding: 0.85rem;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: opacity 0.2s;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

button:hover {
  opacity: 0.9;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#formMessage {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.message-textarea {
  resize: none !important;
}

/* Footer Section */
.site-footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding-top: 60px;
  margin-top: 80px;
  border-top: 1px solid #1e293b;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  color: #f8fafc;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer-logo {
  color: #f8fafc;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-desc {
  line-height: 1.6;
  font-size: 0.95rem;
  max-width: 360px;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: #f8fafc;
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.social-links a:hover svg {
  transform: scale(1.1);
}

.footer-bottom {
  background-color: #020617;
  padding: 20px 0;
  border-top: 1px solid #1e293b;
  font-size: 0.875rem;
}

.footer-bottom-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 640px) {
  .projects-grid,
  .form-row,
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .job-header {
    flex-direction: column;
  }

  .job-date {
    margin-top: 0.25rem;
  }

  .footer-bottom-container {
    flex-direction: column;
    text-align: center;
  }
}
