/* =============================================
   LAYOUT
   ============================================= */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

section {
  padding: var(--space-3xl) 0;
}

/* Dividers between sections */
.section-divider {
  padding: 0;
}

.section-divider hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-xl);
  color: var(--color-text);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85rem 1.75rem;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn .arrow {
  font-size: 1.1em;
  transition: transform 0.2s ease;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-outline:hover {
  border-color: var(--color-text);
  background-color: rgba(0, 0, 0, 0.03);
}

.btn-submit {
  width: 100%;
  padding: 1rem;
  background-color: var(--color-cyan);
  color: var(--color-white);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.5px;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-submit:hover {
  background-color: #29a7e0;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.35);
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--color-border);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: var(--space-2xl);
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-text);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: all 0.25s ease;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
  padding-top: calc(64px + var(--space-4xl));
  padding-bottom: var(--space-3xl);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.hero-name {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: var(--space-lg);
  color: var(--color-text);
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  max-width: 420px;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
}

/* Browser Frame (macOS style) */
.browser-frame {
  background-color: #f5f5f5;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.browser-dots {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background-color: #e8e8e8;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red {
  background-color: #ff5f56;
}
.dot-yellow {
  background-color: #ffbd2e;
}
.dot-green {
  background-color: #27c93f;
}

.browser-content {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.browser-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.browser-frame:hover .browser-content img {
  transform: scale(1.03);
}

/* =============================================
   ABOUT SECTION
   ============================================= */
.about-content p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
  max-width: 800px;
}

.focus-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.focus-icon {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: monospace;
}

.focus-text {
  display: flex;
  flex-direction: column;
}

.focus-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.focus-value {
  font-weight: 600;
  color: var(--color-text);
  font-size: 1rem;
}

/* =============================================
   SKILLS SECTION
   ============================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.skill-card {
  background-color: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  min-height: 140px;
  transition: all 0.25s ease;
  line-height: 1.4;
}

.skill-card:hover {
  background-color: #dcdcdc;
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

/* =============================================
   PROJECTS SECTION
   ============================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
}

.project-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.project-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--color-bg-card);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

.project-image-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
}

.project-info {
  padding: var(--space-lg);
}

.project-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: var(--space-md);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 600;
  color: var(--color-text);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.project-link:hover {
  color: var(--color-primary);
}

.project-link .arrow {
  transition: transform 0.2s ease;
}

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

/* =============================================
   CONTACT SECTION
   ============================================= */
.contact {
  background-color: var(--color-bg-section);
  padding: var(--space-3xl) 0;
  margin: 0;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact-text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.contact-email {
  font-size: 0.95rem;
  color: var(--color-text);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

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

.contact-form {
  background-color: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--color-text);
  background-color: var(--color-bg);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.08);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background-color: var(--color-bg);
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--color-border);
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.footer-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.social-links {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.social-icon:hover {
  color: var(--color-text);
  transform: translateY(-2px);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero-content {
    order: 1;
  }
  .hero-image {
    order: 2;
  }

  .hero-name {
    font-size: 3rem;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 768px) {
  .hero-name {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    height: calc(100vh - 64px);
    background-color: var(--color-white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-2xl);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8.75px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8.75px) rotate(-45deg);
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .skill-card {
    min-height: 110px;
    font-size: 0.95rem;
    padding: var(--space-lg) var(--space-md);
  }
}
