:root {
  --bg-color: #ffffff;
  --text-main: #0B0F19;
  --text-primary: #1F2937;
  --text-muted: #4B5563;
  --text-light: #6B7280;
  --blue-primary: #1D4ED8; 
  --blue-hover: #1E40AF;
  --nav-bg: #F3F4F6;
  --nav-active: #FFFFFF;
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.app-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0;
  margin-bottom: 60px;
}

.logo {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.pill-nav {
  display: flex;
  background-color: var(--nav-bg);
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.nav-item.active {
  background-color: var(--nav-active);
  color: var(--text-main);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.nav-item:hover:not(.active) {
  background-color: rgba(255,255,255,0.4);
  color: var(--text-main);
}

.nav-icon {
  width: 14px;
  height: 14px;
}

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

.profile-links a {
  color: #374151;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-links a:hover {
  color: #000;
}

.profile-links i,
.profile-links svg {
  width: 20px;
  height: 20px;
}

/* HERO */
.hero {
  text-align: center;
  padding: 80px 0 100px;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  color: var(--text-main);
  line-height: 1.1;
}

.hero h2 {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.hero p {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background-color: #2563EB;
  color: white;
}

.btn-primary:hover {
  background-color: #1D4ED8;
}

.btn-secondary {
  background-color: white;
  color: var(--text-main);
  border: 1px solid #E5E7EB;
}

.btn-secondary:hover {
  background-color: #F9FAFB;
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* ABOUT */
.about {
  text-align: center;
  padding: 100px 0;
  max-width: 700px;
  margin: 0 auto;
}

.about h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.about-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 auto 60px;
}

.about h4 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 32px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.tech-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tech-card {
  background-color: #F9FAFB;
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 105px;
  gap: 16px;
}

.tech-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-icon svg {
  width: 100%;
  height: 100%;
}

.tech-card span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* PROJECTS */
.projects-sec {
  padding: 80px 0;
}

.featured-card {
  display: flex;
  gap: 48px;
  margin-bottom: 32px;
  align-items: center;
}

.featured-graphic {
  flex: 1.1;
  background-color: #0F172A;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  color: white;
  min-height: 380px;
}

.graphic-bg-circle {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
}
.graphic-bg-circle-2 {
  position: absolute;
  bottom: -60px;
  left: -20px;
  width: 160px;
  height: 160px;
  background: rgba(30,41,59, 0.4);
  border-radius: 50%;
  z-index: 0;
}

.g-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  z-index: 2;
  position: relative;
}

.g-header span {
  font-family: inherit;
  letter-spacing: 2px;
}

.g-header span span {
  color: #F97316;
}

.g-btn {
  background: rgba(255,255,255,0.1);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
}

.g-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
  z-index: 2;
  position: relative;
}

.g-highlight {
  color: #F97316;
}

.g-desc {
  font-size: 0.75rem;
  color: #94A3B8;
  max-width: 65%;
  line-height: 1.6;
  z-index: 2;
  position: relative;
}

.g-phone {
  position: absolute;
  right: 20px;
  bottom: -40px;
  width: 170px;
  height: 340px;
  background: white;
  border-radius: 20px;
  padding: 16px;
  color: #0F172A;
  z-index: 2;
  box-shadow: -10px 10px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 4px solid #1E293B;
}

.g-phone-notch {
  width: 40px;
  height: 10px;
  background: #E2E8F0;
  border-radius: 5px;
  margin: -6px auto 16px;
}

.g-phone-top {
  font-weight: 800;
  font-size: 10px;
  margin-bottom: 16px;
  text-align: center;
  letter-spacing: 1px;
}

.g-phone-title {
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 4px;
}

.g-phone-subtitle {
  font-size: 11px;
  color: #F97316;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
}

.g-phone-text {
  font-size: 8px;
  color: #64748B;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 24px;
}

.g-phone-btn {
  background: #F8FAFC;
  font-size: 9px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
  margin-bottom: auto;
  color: #334155;
}

.g-phone-mic {
  width: 36px; height: 36px;
  background: #0F172A;
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-top: 16px;
}
.g-phone-mic svg { width: 14px; height: 14px; }

.featured-content {
  flex: 1;
}

.featured-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.featured-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.featured-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.featured-actions .btn {
  font-size: 0.8125rem;
  padding: 10px 20px;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.8125rem;
}

.inline-link b {
  font-weight: 700;
}

.inline-link svg {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}

.inline-link i {
  width: 14px;
  height: 14px;
  color: var(--text-muted);
}


/* Small Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.proj-card {
  padding: 24px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.proj-card h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
}

.proj-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.proj-card .inline-link {
  margin-top: auto;
}

.card-peach { background-color: #FFF3EB; }
.card-gray { background-color: #F4F5F9; }
.card-mint { background-color: #EBFFF3; }
.card-beige { background-color: #FFF8EA; }
.card-lavender { background-color: #F8F5FF; }

.coming-soon {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #9CA3AF;
  margin-top: auto;
}

/* Multi-page Featured Layout */
.featured-card-multi {
  display: flex;
  background-color: #1e293b;
  border-radius: 20px;
  overflow: hidden;
  color: white;
  margin-bottom: 40px;
}

.fcm-text {
  flex: 1.2;
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fcm-text h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.fcm-text p {
  color: #E2E8F0;
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.fcm-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.fcm-actions .btn {
  font-size: 0.875rem;
  padding: 12px 24px;
}

.fcm-graphic-container {
  flex: 1;
  background-color: white;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-highlight {
  background-color: #EEF2FF;
  border: 1px solid #C7D2FE;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
  transition: all 0.3s ease;
}

.card-highlight h4 {
  color: #3730A3;
}

.card-highlight:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.15);
}

/* CONTACT */
.contact {
  text-align: center;
  padding: 80px 0;
  max-width: 600px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.contact p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.btn-contact {
  padding: 12px 28px;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px 0;
  color: #9CA3AF;
  font-size: 0.75rem;
  font-weight: 500;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .featured-card {
    flex-direction: column;
    gap: 32px;
  }
  .featured-card-multi {
    flex-direction: column;
  }
  .fcm-graphic-container {
    padding: 20px;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .g-phone {
    display: none;
  }
}

@media (max-width: 600px) {
  .app-container {
    padding: 0 16px;
  }
  header {
    flex-direction: row;
    justify-content: space-between;
    gap: 4px;
    padding: 16px 0;
  }
  .logo {
    font-size: 1rem;
  }
  .nav-item {
    font-size: 0.7rem;
    padding: 6px 10px;
    gap: 4px;
  }
  .profile-links {
    gap: 8px;
  }
  .hero h1 { font-size: 2.5rem; }
  .hero h2 { font-size: 1.15rem; }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 20px 0 40px;
  }
  .contact {
    padding: 40px 0;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .tech-grid {
    gap: 12px;
  }
  .contact h2 { font-size: 2rem; }
}

/* Contact Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 420px;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(30px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.close-btn {
  background: #F1F5F9;
  border: none;
  cursor: pointer;
  color: #64748B;
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.contact-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: #F8FAFC;
  text-decoration: none;
  border: 1px solid #F1F5F9;
  transition: all 0.2s;
}

.contact-option-card:hover {
  background: white;
  border-color: #E2E8F0;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.co-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: white;
}

.co-text {
  display: flex; flex-direction: column; text-align: left;
}

.co-title {
  font-weight: 700;
  color: #0F172A;
  font-size: 1.05rem;
}

.co-desc {
  font-size: 0.8125rem;
  color: #64748B;
  margin-top: 2px;
  font-weight: 500;
}
