/* CSS Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

:root {
  --bg-white: #ffffff;
  --bg-black: #000000;
  --text-main: #000000;
  --text-muted: #71717a;
  --border-color: #000000;
  --btn-hover: #18181b;
}

body {
  background-color: var(--bg-white);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
}

.logo i {
  font-size: 24px;
}

nav {
  display: flex;
  gap: 32px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--text-main);
  z-index: 1001;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.menu-toggle i {
  font-size: 20px;
  line-height: 1;
}

nav a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  font-size: 16px;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--text-muted);
}

.btn-resume {
  background-color: var(--bg-black);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.btn-resume:hover {
  background-color: var(--btn-hover);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  height: 40px;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s;
  padding: 4px;
}

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

.lang-btn.active {
  color: var(--text-main);
  font-weight: 700;
}

/* Hero Section */
.hero {
  padding: 100px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-content h1 span {
  font-weight: 800;
}

.hero-content p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 500px;
  margin-bottom: 32px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.social-icon:hover {
  background-color: var(--bg-black);
  color: white;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* Skills Section */
.section-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 60px;
}

.section-title span {
  font-weight: 800;
}

.skills {
  padding: 100px 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
}

.skill-card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.skill-card i {
  font-size: 32px;
}

.skill-card span {
  font-weight: 700;
  font-size: 16px;
}

.skill-card.dark {
  background-color: var(--bg-black);
  color: white;
}

.education {
  background-color: var(--bg-black);
  color: white;
  padding: 100px 0;
}

.education .section-title {
  color: white;
}

/* Experience Section */
.experience {
  background-color: var(--bg-black);
  color: white;
  padding: 100px 0;
}

.experience .section-title {
  color: white;
}

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

.exp-card {
  border: 1px solid #3f3f46;
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.exp-company {
  display: flex;
  align-items: center;
  gap: 12px;
}

.exp-details {
  display: flex;
  flex-direction: column;
}

.exp-details span:first-child {
  font-size: 20px;
  font-weight: 700;
}

.exp-details span:last-child {
  font-size: 14px;
  font-weight: 400;
  color: #a1a1aa;
}

.exp-company img,
.exp-company i {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: contain;
  background-color: white;
  padding: 4px;
  border-radius: 6px;
}

.exp-company i {
  color: var(--bg-black);
  font-size: 20px;
}

.exp-date {
  color: #a1a1aa;
  font-size: 14px;
}

.exp-card p {
  color: #d4d4d8;
  font-size: 14px;
  line-height: 1.6;
}

/* Projects Section */
.projects {
  padding: 100px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
}

.project-card {
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.2);
}

.project-image {
  width: 100%;
  height: 200px;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-color);
}

.project-image i {
  font-size: 48px;
  color: var(--text-muted);
}

.project-info {
  padding: 24px;
}

.project-id {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.project-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
}

.project-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-footer {
  display: flex;
  justify-content: flex-end;
}

.project-link {
  color: var(--text-main);
  text-decoration: none;
  font-size: 18px;
  transition: transform 0.2s;
}

.project-link:hover {
  transform: translateX(4px);
}

/* Responsive */

@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 60px 0;
  }
  .hero-content p {
    margin: 0 auto 32px;
  }
  .social-links {
    justify-content: center;
  }
  .hero-image {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: white;
    flex-direction: column;
    padding: 100px 24px 40px; /* Top padding is more than header height */
    gap: 32px;
    border-bottom: 1px solid #e4e4e7;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    z-index: 999; /* Below header */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }

  nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  nav a {
    font-size: 20px;
    font-weight: 600;
  }

  .header-right {
    gap: 12px;
  }

  .btn-resume {
    padding: 10px 16px;
    font-size: 14px;
  }

  .hero-content h1 {
    font-size: 40px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
}
